PDA

View Full Version : Check if in editpoly/uvwmap modifier?


Gibbz
11-07-2005, 12:26 AM
is it possible to check which modifier the user is in when they run a script?

Id like to do a if statment and check the mode the user is in, depedning on the mode the script needs to do slightly diffrent...

Thanks

prettyPixel
11-07-2005, 12:41 AM
If you want to check if the modifier is an unwrap:

obj=selection[1]
mp=modPanel.getCurrentObject()
if mp!=undefined do (
if classof mp==Unwrap_UVW do (
nMod=modPanel.getModifierIndex obj mp
format "obj.modifiers[%]=% is an unwrap\n" nMod mp
)
)

Gibbz
11-07-2005, 01:14 AM
ok cool, thanks

CGTalk Moderation
11-07-2005, 01:14 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.