Results 1 to 1 of 1

Thread: How to tell what mode the user is in? (point, edge or polygon)

  1. #1
    Registered User
    Join Date
    Aug 2015
    Location
    New Brunswick, Canada
    Posts
    18

    How to tell what mode the user is in? (point, edge or polygon)

    I'm trying to write a plugin. I'm using the LWMESHEDIT_CLASS. This appears to work on points, edges and polygons alike and my plugin could work with any of these. And in Lightwave, you can have 3 selections at the same time, one for each type. However, I can't tell what mode the user is in. How do you do this? I've seen commands get disabled if you switch modes. How do you do this?

    edit: I found the SRVTAG_ENABLE tag. You can tell it when it should be enabled, but appears to only support one type at a time. It'd be annoying to write three different plugins for the same thing. Is there a way around this?

    edit2: Actually, I think I can have three entries in the ServerRecord struct, each with its own tags. So by having three different activations that all go to the same code except for the initial setup, I can have a single plugin.

    Looks like I answered my own question. Now if only I could determine which UV map is currently selected, I'd be all set.
    Last edited by Vorlath; 09-07-2015 at 02:47 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •