Hi guys!
This might be stupid question, but i am struggling to define shortcut for Deform > Push operator. I simply cannot find it in the Keyboard Mapping list. I tried to view the list in browser and search in it, but no luck.
Another question: is there a way to set a shortcut for toggling layouts between default one and my own layout in XSI?
Thanks in advance.
Deform shortcuts
-
Grubber
- Posts: 165
- Joined: 22 Jun 2009, 19:11
- Location: Vilnius, Lithuania
-
Hirazi Blue
- Administrator
- Posts: 5113
- Joined: 04 Jun 2009, 10:15
Re: Deform shortcuts
Just looked into it for a bit, it seems shortcuts for deformers can only be created taking the "scenic route"
, i.e. defining a custom command and mapping the keyboard to this custom command. In this case such a "scenic" solution would look something like this (in Python) inside the Execute callback of a custom command, created with the custom command wizard:
Note: this does no error checking if the Operator can be applied or anything...
After that, you can access the Custom Scripting Command in the Keyboard Mapping Tool. In the attached example the command is called pushkey
Concerning your second query: you know you can map individual layouts to individual keys using the Keyboard Mapping Tool? ;)
Code: Select all
argh = Application.ApplyOp("Push", "", 0, 0)
Application.InspectObj(argh)After that, you can access the Custom Scripting Command in the Keyboard Mapping Tool. In the attached example the command is called pushkey
Concerning your second query: you know you can map individual layouts to individual keys using the Keyboard Mapping Tool? ;)
-
Grubber
- Posts: 165
- Joined: 22 Jun 2009, 19:11
- Location: Vilnius, Lithuania
Re: Deform shortcuts
Hey Hirazi Blue, thanks so much. I will definitely try it out.