Re: Maya Match Transforms
| Date : Mon, 24 Dec 2007 10:30:58 -0500 |
| To : XSI(at)Softimage.COM |
| From : Eric Thivierge <eric(at)xsidatabase.com> |
| Subject : Re: Maya Match Transforms |
Thanks,
Eric Thivierge, XSI Database Admin www.xsidatabase.com eric(at)xsidatabase.com Forum Username: EricTRocks
Eric Thivierge wrote:
Thanks for the responses. Yes I should pick up a MEL book (and probably will in the next week or so) but I was just wondering if it was just in the software somewhere I couldn't find. I appreciate the help a lot.
Thanks for the code samples as well. Are they Jscript? If so doesn't maya only run MEL and Python?
Thanks,
Eric Thivierge, XSI Database Admin www.xsidatabase.com eric(at)xsidatabase.com Forum Username: EricTRocks
Julien Stiegler wrote:here are several methods i use
global proc JS_Snap_Selection () { string $sel[] =`ls -sl`; string $sel0 = $sel[0]; string $sel1 = $sel[1]; JS_Snap ($sel0, $sel1); }
global proc JS_Snap(string $a,string $b) { // constrain eval ("orientConstraint -w 1 -n OrienterX "+ $a +" "+ $b ); eval ("pointConstraint -w 1 -n PointerX "+ $a +" "+ $b ); refresh; // delete constraints eval ("delete OrienterX"); eval ("delete PointerX"); refresh; }
global proc JS_MatchRotation(string $source, string $destination ) { float $rot[]= `xform -q -ws -rotation $destination`; rotate -a -ws $rot[0] $rot[1] $rot[2] $source; }
global proc JS_MatchPosition(string $source, string $destination ) { float $pos[] = `xform -q -ws -rp $destination`; move -absolute $pos[0] $pos[1] $pos[2] $source ; }
Tim Leydecker wrote:
Depending on your desired result, there´s also the Modify>Snap Align Objects menu.
You could also try expressions, starting in the most simple form of :
pCube1.translateX = pCube2.translateX;
created by rightclicking in the channelbox on the
translate x channel and picking expression from
the dropdown menue.
I´m guessing you try to bake/simulate some transforms,
afaik there aren´t too many more options to put a null
at a specific point in the hierarchy of a transformchain
(parent/grouping it) after creating, then deleting those
constraints.
You might still have luck creating a simple MEL script
by copy&paste of what the scripteditor spits out when
you perform those operations. Drag that code, or your
modified version from the scripteditor to the shelf to
have some ease with the pain (and save all shelfes...)
Cheers
tim
----- Original Message ----- From: "Eric Thivierge" <eric(at)xsidatabase.com> To: <XSI(at)Softimage.COM> Sent: Monday, December 24, 2007 5:25 AM Subject: OT: Maya Match Transforms
Hey,
Having to work in Maya on my current project and am very frustrated. Anyone know if there is a way to match transforms in Maya other than manually creating point / orient constraints then deleting them? It's getting tedious having to do this each time.
If this feature isn't in the actual software package it's going on the list of reasons I hate the software.
-- Thanks,
Eric Thivierge, XSI Database Admin
www.xsidatabase.com
eric(at)xsidatabase.com
Forum Username: EricTRocks
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi
- Follow-Ups:
- Re: Maya Match Transforms
- From: Julien Stiegler <julien.stiegler(at)free.fr>
- Re: Maya Match Transforms
- References:
- OT: Maya Match Transforms
- From: Eric Thivierge <eric(at)xsidatabase.com>
- Re: Maya Match Transforms
- From: "Tim Leydecker" <BauerOink(at)gmx.de>
- Re: Maya Match Transforms
- From: Julien Stiegler <julien.stiegler(at)free.fr>
- Re: Maya Match Transforms
- From: Eric Thivierge <eric(at)xsidatabase.com>
- OT: Maya Match Transforms
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Maya Match Transforms
- Next by Date: Re: Maya Match Transforms
- Previous by Thread: Re: Maya Match Transforms
- Next by Thread: Re: Maya Match Transforms
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |