Add morpher

Become a member of the CGSociety

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

 
Thread Tools Search this Thread Display Modes
Old 1 Week Ago   #1
Add morpher

Hi All,
I want add morpher to object in modifier
but add the under skin, I do not want add up skin modifier
Thanks,
 
Old 1 Week Ago   #2
Here's a snippet from MAXScript help, "Node Common Properties, Operators, and Methods"
Quote:
Code:
addModifier <node> <modifier> [before:index]
The optional before: keyword argument can be used to insert the modifier into the node's modifier stack just before the indexed modifier, counting from the top of the stack.

You'll just need to figure out which index is the modifier you want to insert before. You can do that by iterating through the modifier stack using index and checking the class of the modifier (using: classof <something>).
 
Old 1 Week Ago   #3
Pretty simple, here is an example.
Code:
-- myBox = Box() addModifier myBox (Skin()) -- fn getSkinIndexFn obj = ( for i = 1 to obj.modifiers.count where (classof obj.modifiers[i]) == Skin do return i return 0 ) addModifier myBox (Morpher()) before:(getSkinIndexFn myBox)
__________________
Felipe Nogueira aka: PePeTD
Technical Artist/Character TD
http://felipenogueira3d.com
 
reply 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 04:00 AM.


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