Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there any way to parent an existing transform into a curves underworld? It seems you can create a transform node directly in the underworld, but you can't re-parent one into it đ
Here's some code to demonstrate:
# first create an ordinary NURBS curve:
curve = cmds.curve(d=1, p=((-2,0,0),(2,0,0)))
curveShape = cmds.listRelatives(curve, shapes=True)[0]
# this works fine, I get a transform UNDER the shape (underworld)
cmds.createNode('transform', p=curveShape)
# this variant however doesn't work, no matter what flags used :(
tr = cmds.createNode('transform')
cmds.parent(tr, curveShape)I've tried all the different parent flags (shape=True, etc..) but nothing seems to work. Does anyone know if it's even possible? seems stupid that the former method works fine, but the parent command doesn't.
Solved! Go to Solution.