PDA

View Full Version : Maya => XSI


modena
07-24-2003, 03:17 AM
Just a few questions from a newbie XSI user...

I want to setup some toggle snapping shortcuts like Maya.
eg:
"x" = grid snap
"c"= curve/edge
"v" = vertex/point
When I goto keyboard mapping in XSI it only gives me options for setting up "Toggle Grid Snap" and "Toggle Point Snap". How can I setup a toggle for edge snapping?

Does XSI have an echo command for the script editor? When echo is turned on in Maya you can see absolutely everything that Maya is scripting, not just the main commands it wants you to see.

I want to setup a shortcut key for "Center" found in the "Select Menu", but I can't find it in the Keyboard Mapping window.

cheers
Modena

RickW
07-24-2003, 03:35 AM
How can I setup a toggle for edge snapping?


To toggle on snapping in general use the ctrl key. I don't think there's a specific key just to toggle on edge snapping from a SRT mode.

I believe you have to enter snap mode first and then use the shortcuts below.

Here's the snapping shortcuts:
Snap to Edges Shift + E
Snap to Grid Shift + G
Snap to Mid Points Shift + M
Snap to Pixel Corners Shift + K
Snap to Pixel Edges Shift + D
Snap to Points Shift + P


Does XSI have an echo command for the script editor?

Nope


I want to setup a shortcut key for "Center" found in the "Select Menu", but I can't find it in the Keyboard Mapping window.

If you are using XSI 3.5, then hold down the alt key in either translate, scale or rotate mode and you can move the pivot anywhere you like.

Btw. Go to xsinet and type Maya keymap in the search box. Look under library. Might save you the trouble of changing all of the keys.
http://www.softimage.com/xsinet/

Good Luck

ggg
07-24-2003, 05:28 AM
Is this for the texture editor or 3D views?
Originally posted by modena

When I goto keyboard mapping in XSI it only gives me options for setting up "Toggle Grid Snap" and "Toggle Point Snap". How can I setup a toggle for edge snapping?
If for 3d views it doesn't give an option I guess because it requires two commands.

-put the following lines in script editor:
ToggleValue "Enable1D", "SnapProperties"
ToggleValue "Edges", "SnapProperties"
-select all of of it and dragndrop it onto a toolbar like scripts(or make your own) call it "edgesnap"
-in keyboard mapping, under the group custom script commands, you'll now see a command "edgesnap", shift ctrl or whatever key combo and dragndrop the command name onto an unused key.
(note for this toggle-script-keyshortcut to work both segment and edge must be BOTH on or off)

Hi Rick, what is an echo command?

RickW
07-24-2003, 05:42 AM
Hi Rick, what is an echo command?

In maya there's an option in the Script Editor to echo all commands. Which basically is supposed to log every single thing you do via the UI into the Script Editor.

As you know this is not the case in XSI so we are left with no choice but to start hunting the scripting documentation on how to do something via code. Alot of things in XSI are logged but not everything.

I think compiled operators & scripts in XSI are a good example of commands not being logged/echoed. More than likely it's more of a performance issue than an intentional obstacle.

I used to wonder why they were hiding the code and then one day I started running compiled commands and noticed a drastic performance gain since nothing was logged to the script editor.


Last time I worked in Maya not everything was logged/echoed into the script editor even with this option enabled but that may have changed since maya 4.5 & up.

Sorry I can't remember what wasn't echoed in Maya, been a long time since I worked in it full time.

modena
07-24-2003, 12:27 PM
then hold down the alt key in either translate, scale or rotate mode and you can move the pivot anywhere you like.
The problem with doing this is you can't restrict the pivots movement along a single axis, which I find crucial.

btw...thanks heaps for the replies.
modena

ggg
07-24-2003, 08:25 PM
Thanks for the explaination Rick, now I see what I'm missing.

Modena you can use snapping in combo with moving the pivot and use a grid or a dummy cube etc object and use its edges or points. Still not quite what you want :hmm:

Why they didn't put a transform widget on the pivot of offer transform modes for it too, I don't know...

RickW
07-24-2003, 10:02 PM
Why they didn't put a transform widget on the pivot of offer transform modes for it too, I don't know...

Right on! I was scratching my head thinking the same thing! I think this needs to be sent in as a request.

As far as a hotkey for the center button under the select menu. Sorry I can't find anything in the scripting docs on this one.

I'm not as much a center/pivot pusher as I used to be in Maya. I used to move the pivot alot when working with nurbs. You'll learn fast not to use Nurbs in XSI or use them sparingly.

Here's a Silly solution.
All I can think of is move the center via code and then move it back. That should leave you in center mode. You can make a command for this and then a hotkey.

Good Luck!

modena
07-25-2003, 03:21 AM
How can you setup the edge toggle script to turn on when the hotkey is pressed and off when released?

God only knows why the CTRL pivot method doesn't offer a transform widget. What happens if you need to move the pivot along the X axis and snap align it to an edge/vertex...I know you can do this if you use "Center" to move the pivot, but there is no shortcut for this...

cheers
Modena

CGTalk Moderation
01-15-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.