I think you'll find the changing node name pattern quite frequently.  Space 
switching is still usually implemented as a script though, from my experience. 

One trick is to tag special space switching nodes with some attr, and find them 
with your script by listing nodes with that attr.  Then trace connections to 
find the other relevant nodes to the switch. 

node names are always subject to change, but attribute names are pretty 
reliable.

I can try and give you a better example when I'm in front of a computer, but 
maybe those ideas will get you started

-jp

Sent from my iPhone

On Apr 28, 2011, at 3:41 PM, notanymike <[email protected]> wrote:

> Well parent constraints would work but I'd need to know how to get
> past namespace issues to get it working properly. What I need is a
> node for setting up space-switching without jumping for a character's
> already broken hierarchy that eliminates the need for mel scripts to
> do the same job since they easily break once the rig that script is
> intended for has all it's node name strings changed when the rig is
> referenced (a common practice at my school).
> 
> On Apr 26, 12:43 pm, Animatix <[email protected]> wrote:
>> It sounds like he is talking about a parent constraint with mulitple
>> offsets firing at a particular frame, do that sound right?
>> 
>> On Apr 26, 9:54 am, Shawn Patapoff <[email protected]>
>> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Doesn't a parent constraint do all this all ready for you?
>> 
>>> On Sun, Apr 24, 2011 at 6:14 PM, notanymike <[email protected]> wrote:
>>>> Hi, I'm trying to come with some sort of transform node that can have
>>>> multiple transform matrices influencing it's own translate,rotate,and
>>>> scale attributes, but still allows for control, animation, and
>>>> preservation of the user-intended position of that transform.
>>>> Basically it's a space-switching/dynamic parenting transform.I have
>>>> two ideas for what attributes to create on the transform: Either have
>>>> a compound message attributes or compound matrix attributes that the
>>>> user can add or delete, with an enable and/or weight attribute for
>>>> each added parent. The only two parts I'm stuck on is how to write out
>>>> "when the enable and/or weight attribute is changed, recompute the
>>>> transforms position" in python, and how to re-compute the transform's
>>>> final position after parents have been added/removed from the compound
>>>> attribute. Does anyone have time to help me on this? I'm brand new to
>>>> python, but I'm starting to understand the syntax. It's structure I
>>>> have to learn somehow...
>> 
>>>> --
>>>> http://groups.google.com/group/python_inside_maya
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to