Deform shortcuts

General questions and troubleshooting SOFTIMAGE©
User avatar
Grubber
Posts: 165
Joined: 22 Jun 2009, 19:11
Location: Vilnius, Lithuania

Deform shortcuts

Post by Grubber » 28 Oct 2009, 10:45

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.

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: Deform shortcuts

Post by Hirazi Blue » 28 Oct 2009, 12:10

Just looked into it for a bit, it seems shortcuts for deformers can only be created taking the "scenic route" :D, 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:

Code: Select all

argh = Application.ApplyOp("Push", "", 0, 0)
Application.InspectObj(argh)
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? ;)

User avatar
Grubber
Posts: 165
Joined: 22 Jun 2009, 19:11
Location: Vilnius, Lithuania

Re: Deform shortcuts

Post by Grubber » 28 Oct 2009, 18:30

Hey Hirazi Blue, thanks so much. I will definitely try it out.