ScriptSpot

Forum topic · General Scripting

ctrl clicking buttons

By nikkib · 2009-05-12

Description

Hi guys,

I'm new to maxscript, and have just created a rollout with buttons for selecting bones on a rig which isn't biped.

I am trying to make it so that you can control click other buttons and they will be added to the selection, but i'm really struggling at the moment.

I know it has something to do with 'if keyboard.controlpressed == true then"
But im stuck after that!

Any help would be greatly appreciated as im sure its something really easy!

Comments (2)

real08121985 · 2009-05-12

You already got it :)

rollout rlTest "" (
button b "Button" width:100 height:30 pos:[0,0]
on b pressed do (
if keyboard.controlPressed then (
messagebox "CTRL ya"
)
else (
messagebox "CTRL no"
)
)
)
createDialog rlTest 100 30

nikkib · 2009-05-19

thank you so much for your help! :)