guide.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:mgear 作者: miquelcampos 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号