Check if in editpoly/uvwmap modifier?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2005   #1
Check if in editpoly/uvwmap modifier?

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
__________________

 
Old 11 November 2005   #2
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 
		)
	)
 
Old 11 November 2005   #3
ok cool, thanks
__________________

 
Old 11 November 2005   #4
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:55 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.