Notifications
Clear all
[Closed] Check if in editpoly/uvwmap modifier?
Nov 07, 2005 1: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
2 Replies
Nov 07, 2005 1:26 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
" nMod mp
)
)