Attaching a script to a hotkey

   4572   4   2
User Avatar
Member
196 posts
Joined: July 2005
Offline
Hi,

I'm want to assign a bit of script to a hotkey, but am having no luck. How is this done?

I want something like F12 does opset -c off /*; opset -c on /Left_*

??

Thanks
Henster
User Avatar
Member
1634 posts
Joined: July 2005
Offline
Hey Henster,

I believe it should be

opset -C off /obj/*; opset -C on /obj/Left_*

Cheers!
steven
User Avatar
Member
321 posts
Joined: July 2005
Offline
Henster
Hi,

I'm want to assign a bit of script to a hotkey, but am having no luck. How is this done?

I want something like F12 does opset -c off /*; opset -c on /Left_*

??

Thanks
hscript-> alias F12 ‘opcf /obj; opset -d off *; opset -d on myObject’

– Antoine
Antoine Durr
Floq FX
antoine@floqfx.com
_________________
User Avatar
Member
196 posts
Joined: July 2005
Offline
Thanks for the reply,

I wanted it selectable in the viewport for animation purposes so……

I looked up the docs for once :roll:

and if anyone else wants it, use the -S flag.

so…
alias F12 ‘opset -C -S off /obj/*; opset -C -S on /obj/Left_*’

when F12 is pressed it selects the left side of the character ( if you labelled it with a Left_ prefix.)

thanks guys
Henster
User Avatar
Member
196 posts
Joined: July 2005
Offline
Opps, maybe I shouldn't even bother reading the docs.

“-S” makes the objects selectable but I really wanted “-p” which makes the objects picked in the viewport.

Ahem…
Henster
  • Quick Links