[Closed] Custom Attribute Param Value
Hey tehre… so I have this code…
rollout curl "Hand Curls"
(
slider indexcurl "Index" range:[-90,90,0]
slider middlecurl "Middle" range:[-90,90,0]
slider ringcurl "Ring" range:[-90,90,0]
slider pinkycurl "Pinky" range:[-90,90,0]
slider thumbcurl "Thumb" range:[-90,90,0]
on indexcurl changed val do
(
local names = custAttributes.getDef $ handControls
messagebox(names[indexBone1].value + val) -- Testing to see if it would call the param
)
)
I am having trouble curling these fingers… that is why I established this. I am trying to have independent influences on fingers. For say: You can move each joint individually while controling it as a whole under another contorl. I was looking @ PEN_Attrib. Holder… That gave me a hint of what to do, but I don’t really know how to call parameters in custom attributes… I know what we use
local names = custAttributes.getDef $ handControls
To get the CA, but then what do i do to get a parameter value and alter the value?
Thanks,
Jon
If you use PEN Attribute holder you can just create a preset to do what you ask. I can’t tell from your code what it is you are trying to do at this point as it isn’t complete. Are you trying ot write a custom attribute definition?