created Re: Maxscript keyboard shortcuts?
on 09-02-2005 08:11 AM
You can do something following:
Let's say this is the script with the rollout and the button that you want to press:
<font class="small">Code:</font><hr /><pre>rollout testRlt "Test Rollout"
(
button testBtn "Press Me"
on testBtn pressed do (print "Button pressed")
)
testFltr = newRolloutFloater "Test Floater" 150 60
addRollout testRlt testFltr</pre><hr />
You would make a new macroscript that basically just says something like this:
<font class="small">Code:</font><hr /><pre>testRlt.testBtn.pressed()</pre><hr />
Then assign that one to a hot key. You'd have to make a seperate macroscript for each button. And you might have to declare the main rollout as global in the original script. Also, the rollout would have to be open for the other button pressing scripts to work.
Hope that helps.
|