Custom Attributes
Hi
I have added custom attributes to an attribute holder using the Parameter Editer. It works well but I want to add extra rollouts and rename them. At the moment I can only have one called 'Custom Attributes'. It looks like the only way to do this is to script it. I have had a look at the help, but couldn't get anything to work. Can anyone please help?
Thanks!
Gram
Comments
Thanks
I gave that a test and it works great. :)
I dont know why it's so difficult when looking at the max help.
Thanks again
Gram
That's true :)
That's true :)
You can add and redefine
You can add and redefine custom attributes via script. Adding could work like this:
It is defining a custom attribute set called "camControls" and adding it to the first modifier of the selected object, which should be an empty attribute holder. If you now want to change something in the code you can simply change some lines at the start and delete the last line:
It is important to know the name of your custom attribute set. If you are not sure or you forgot it, you can see its name in the track view/curve editor when you expand the attribute holder modifier. In your case the line would be ca=custAttributes.getDef $.modifiers[1].Custom_Attributes
etc.
Cheers
Never get low & slow & out of ideas