View Full Version : View source code of modifier
Snape 08-24-2006, 03:44 PM Hi,
Could someone tell me how to view the source code of the attribute holder on my selected object.
I thought it was along the lines of:
print $.modifier[1].source
but this doesnt seem to work.
Thanks
Spencer
|
|
Zbuffer
08-29-2006, 12:57 PM
Hi,
Look on paul Neale's site for PEN_editAttributes (part of PEN_Rigging_Utils)
Snape
08-29-2006, 07:07 PM
Hi Zbuffer,
Thanks for your help and I have done that but would really like to know how to do it myself.
Im guesing its not much code to access the source code of an attribute holder so I can customise it without having to rely on the onboard tools that ship with max.
Paul Neale's rigging DVDs are also great. I would certainly recommend them, well worth the investment.
Snape
08-29-2006, 07:11 PM
[posted twice]
[posted twice]
I cover this in the DVD's in several places I believe.
def=custAttributes.getDef $theObject.'attribute holder'.theDefName
format def.source to:(newScript())
Snape
08-29-2006, 07:26 PM
Yes sorry about that. I was at work at the time I posted the question (while the dvds were at home!) and have only watched the dvds once through. Im quite new to rigging and its a bit of an overload.
I was attempting to rig some shapes up for some motion graphics and would never have even thought to do that before Id watched your dvds.
Thanks for the code.
Still havent finished dvd 4 but looking forward to going through them again.
Spencer
CGTalk Moderation
08-29-2006, 07:26 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.