Dryden
11-13-2007, 09:10 AM
Hi all, I'm new in Mel world, so it could be a stupid question, but I can't find a way to fix it.
I make a lil script to change value of scale of an object. Ok that's easy, so i'll try to go deeper.
Now I'm trying to make a general script. 3 Slider to change scale properties of an object, and to use this 3 slider for any object. In few words : 3 sliders who change scale value on 3 axes, but a lil harder who change if I change of selected object. I know how to use ls -sl but I can't find out how to change dynamicly the value of those slider.
Example cause I'm sure I'm not clear :
2 object one sphere one cube. I select cube, so slider value are 0,0,0. Change it with slider to 10,5,1. Ok cube scale change. But now If I select the sphere slider keep the value 10,5,1 and do not load value of sphere 0,0,0. (I can't find to a way to dynamicly change the attr who is link to slider by using scriptJob)
This exemple is about 2object but I can use it for 3, 10 ,100 so I can't use a -visible off....
Any idea to help me ?
(in other word a way to -edit -query dynamicly the value of an attrFieldSliderGrp).
Of course all in Mel not python.
Thanks a lot,
Mathieu 'Dryden' Laussel
I make a lil script to change value of scale of an object. Ok that's easy, so i'll try to go deeper.
Now I'm trying to make a general script. 3 Slider to change scale properties of an object, and to use this 3 slider for any object. In few words : 3 sliders who change scale value on 3 axes, but a lil harder who change if I change of selected object. I know how to use ls -sl but I can't find out how to change dynamicly the value of those slider.
Example cause I'm sure I'm not clear :
2 object one sphere one cube. I select cube, so slider value are 0,0,0. Change it with slider to 10,5,1. Ok cube scale change. But now If I select the sphere slider keep the value 10,5,1 and do not load value of sphere 0,0,0. (I can't find to a way to dynamicly change the attr who is link to slider by using scriptJob)
This exemple is about 2object but I can use it for 3, 10 ,100 so I can't use a -visible off....
Any idea to help me ?
(in other word a way to -edit -query dynamicly the value of an attrFieldSliderGrp).
Of course all in Mel not python.
Thanks a lot,
Mathieu 'Dryden' Laussel
