Is it possible to remove a redundant, intermediate transform or do similar DAG manipulations?

Is it possible to remove a redundant, intermediate transform or do similar DAG manipulations?

kjw.chiu
Contributor Contributor
169 Views
0 Replies
Message 1 of 1

Is it possible to remove a redundant, intermediate transform or do similar DAG manipulations?

kjw.chiu
Contributor
Contributor

I've been trying some exercises in the Node Editor to learn Maya better, and ended up with a situation like this:

kjwchiu_0-1673274028338.png

transform2 is redundant in this case, and just the identity transform. Is there any way to remove it? I tried unparenting, but it removed the top pCylinder1 transform and made transform2 then the top-level transform, which is not what I wanted. Of course, I could manually copy the attributes from pCylinder1 to transform2, but wondering if there was a better way.

 

Equivalently, is there a way to do arbitrary DAG manipulations, similarly to the way we can manipulate the DG in the Node Editor?

 

If it involve programming/scripting, that would also be of interest to me.

 

Thank you.

 

EDIT: Okay, I figured out how to do this in MEL:

 

parent -shape -relative pCylinderShape1 pCylinder1;

0 Likes
170 Views
0 Replies
Replies (0)