Notifications
Clear all

[Closed] Maxscript problem When Parameters

Hey guys i have a question basically i am trying to link a set of buttons i have created to a set of custom attributes, just making it easier for me to animate and select control points.

I am however having some problems when it comes to making the new buttons move with the custom attributes. Because i have a slider and spinner set up this means that if i change the value of a spinner the slider doesnt move and visa versa.

To get around this i thought i would use the When construct, and the parameters function
Though this works for the first set of sliders and spinners the problem happens when the code is duplicated for the rest as these move at the same time. Ive tried other functions like transforms but its not really a value of a button so that doesnt work either. Below is the code im using maybe that might help in understanding

Oh to do this when function i have to do it outside of the utility so the only way it works is by referencing the utility so thats the footroll. bit

when parameters $AlienLAnkleControl.BigToe change do
(
footRoll.bigToeSld.value = $AlienLAnkleControl.BigToe –
footRoll.bigToeSp.value = $AlienLAnkleControl.BigToe
)

when parameters $AlienLAnkleControl.MiddleToe change do
(
footRoll.middleToeSld.value = $AlienLAnkleControl.MiddleToe
footRoll.middleToeSp.value = $AlienLAnkleControl.MiddleToe
)

If you could help would be wonderful thanks guys