[Closed] buttons that effects a slider
hi,
i am a newbie to max script and i am trying to create a little script for face controls.
it make one slider and 2 buttons, one to make the slider go to 0 and one to make the slider go to 100.
i cann’t find in max help or …i don’t understand from max help how to create this funcation:sad:
this is what i got so far:
code:
[color=#fffffe]rollout Morph_targets “Morph targets”
(
slider ooo “ooo” orient:#h ticks:10 range:[0,100,0] offset: [0,0]
button theButtonooo0 “ooo=0” width:75 height:25 offset: [-74,0]
button theButtonooo100 “ooo=100” width:75 height:25 offset: [60,-30]
on theButtonooo0 pressed do
(
–what do i put here so when i press the button it will move the slider to 0
)
on theButtonooo100 pressed do
(
–what do i put here so when i press the button it will move the slider to 100
)
)
createDialog Morph_targets 250 100
Maxscript gurus i am need of your help,
thanks,
Asa
[/color]
[color=#fffffe]rollout Morph_targets "Morph targets"
(
slider ooo "ooo" orient:#h ticks:10 range:[0,100,0] offset: [0,0]
button theButtonooo0 "ooo=0" width:75 height:25 offset: [-74,0]
button theButtonooo100 "ooo=100" width:75 height:25 offset: [60,-30]
on theButtonooo0 pressed do
(
ooo.value = 0
)
on theButtonooo100 pressed do
(
ooo.value = 100
)
)
createDialog Morph_targets 250 100
[/color]
hOpe this helps,
o
thanks, it did:thumbsup: ,
but honset to god i did try this and it keep given me errors… very strange.
thanks ofer