Describe the problem. Shape nodes cannot be unparented from their transforms without being moved elsewhere.
What Version of Maya are you using? 2015 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Windows 8.1 Pro, 64-bit OS, x64-based processor What Version of PyMEL are you using? 1.0.6 What is the expected output? What do you see instead? Expected: The indicated instance of the shape node should be removed from its parent transform. All other instances should remain unchanged.
Actual: The indicated instance is unchanged. A list with the correct indicated instance is returned instead. If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. import pymel.core as pm
import maya.cmds as cmds
Observe that the shape node is deleted appropriately Does maya.cmds exhibit the same problem? No, see above code sample. Please provide any additional information below.
From Jenosa...@gmail.com on July 26, 2015 17:17:10
Describe the problem. Shape nodes cannot be unparented from their transforms without being moved elsewhere.
What Version of Maya are you using? 2015 On what operating system? (be as specific as possible and include service packs, 64bit vs 32bit, etc) Windows 8.1 Pro, 64-bit OS, x64-based processor What Version of PyMEL are you using? 1.0.6 What is the expected output? What do you see instead? Expected: The indicated instance of the shape node should be removed from its parent transform. All other instances should remain unchanged.
Actual: The indicated instance is unchanged. A list with the correct indicated instance is returned instead. If possible, provide a few lines of code to reproduce the problem. It helps us if your code will reproduce the problem from a new scene. import pymel.core as pm import maya.cmds as cmds
pmCircle = pm.circle()[0] cmdsCircle = pm.circle()[0]
pm.parent(pmCircle.getShape(), pmCircle, shape=True, removeObject=True) pm.parent(pmCircle.getShape(), shape=True, removeObject=True) pm.parent(pmCircle.getShape().name(), shape=True, removeObject=True) pm.parent(pmCircle.getShape(), pmCircle.name(), shape=True, removeObject=True)
Observe that the shape node remains unchanged
cmds.parent(cmdsCircle.getShape().name(), shape=True, removeObject=True)
Observe that the shape node is deleted appropriately Does maya.cmds exhibit the same problem? No, see above code sample. Please provide any additional information below.
Original issue: http://code.google.com/p/pymel/issues/detail?id=319