Notifications
Clear all
[Closed] Return number of parameters in parameter block
Aug 20, 2007 10:19 pm
Hi,
I am trying to get the listener to return the number of parameters in my ‘PEN attribute holder2’ param block.
If the object with the PEN modifier is selected and the last modifier in the stack is the ‘PEN attribute holder2’ and the parameter block is called ‘amyface’ then I would think this should work:
print $.modifiers[$.modifiers.count].amyface.count
…but it doesnt
can anybody help…?
Thanks
Spencer
2 Replies
Aug 20, 2007 10:19 pm
This should do it:
print $.modifiers[$.modifiers.count].amyface.[b]numSubs[/b]
Or, in case the attributes are added through the max interface (and thus have the default param block name “Custom Attributes”):
print $.modifiers[$.modifiers.count].custom_attributes.[b]numSubs[/b]
Cheers,
Martijn