Wow, Maya requires a script to match transforms..... amazing.
On Dec 24, 2007 3:46 AM, Julien Stiegler <julien.stiegler(at)free.fr> 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