[Closed] Morpher and buttons
Hi i am very new to max script so this might be a very simple question…i hope,
i am trying to create a rollout with buttons that will effect the morpher so when you press the button it will create 100.0 in the morpher channel list,
anybody has a script for that?
thanks,
Asa
I have written a script which does that and much more …
http://www.cgtalk.com/showthread.php?t=238317
shibu
Thanks shibu, it looks great but i am trying to learn max script and yours is coded…
can you share your knowledge of how to make a button that works with the morpher please?
[color=white]ofcourse, Asa_
on[/color] make100btn1 pressed do
(
$.modifiers[#morpher][x].value = 100
)
replace x with the channel number which u wish to access
-shibu
you can also do –
a = the morpher channel index (or number)
on btn24 pressed do
(
if selection.count == 1 and (try($.morpher)catch(undefined)) != undefined do
(
WM3_MC_SetValue $.morpher a 100.00
)
extra bit is an error trap to see if you have a single object selected, and it has a valid morpher modifier on it. otherwise you’d get an error.
Ah the good old catch code… I really must start putting that into my scripts!