def getObjects3(self, model):
"""
NOTE: Experimental function
Get the objects of the component.
This version only get the transforms by Name using Maya Cmds
Args:
model(dagNode): The root of the component.
Returns:
list of dagNode: The list of the objects.
"""
objects = {}
for child in cmds.ls(self.fullName + "_*", type="transform"):
if pm.PyNode(child).getParent(-1) == model:
objects[child[child.index(
self.fullName + "_") + len(self.fullName + "_"):]] = child
return objects
评论列表
文章目录