Notifications
Clear all

[Closed] View source code of modifier

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

5 Replies

Hi,

Look on paul Neale’s site for PEN_editAttributes (part of PEN_Rigging_Utils)

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.

[posted twice]

1 Reply
 PEN
(@pen)
Joined: 11 months ago

Posts: 0

I cover this in the DVD’s in several places I believe.

def=custAttributes.getDef $theObject.'attribute holder'.theDefName
format def.source to:(newScript())

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