Пример #1
0
    def save(self, objects, sequencePath="", **kwargs):
        """
        Save the animation from the given objects to the item path.
        
        :type objects: list[str]
        :type sequencePath: str
        :type kwargs: dict
        """
        super(AnimItem, self).save(**kwargs)

        # Save the animation to the given path location on disc
        mutils.saveAnim(objects,
                        self.path(),
                        time=kwargs.get("frameRange"),
                        fileType=kwargs.get("fileType"),
                        iconPath=kwargs.get("thumbnail"),
                        metadata={"description": kwargs.get("comment", "")},
                        sequencePath=sequencePath,
                        bakeConnected=kwargs.get("bake"))
Пример #2
0
    def write(self, path, objects, iconPath="", sequencePath="", **options):
        """
        Write the animation on the given objects to the given path.
        
        :type objects: list[str]
        :type path: str
        :type iconPath: str
        :type sequencePath: str
        """
        super(AnimItem, self).write(path, objects, iconPath, **options)

        # Save the animation to the given path location on disc
        mutils.saveAnim(objects,
                        path,
                        time=options.get("frameRange"),
                        fileType=options.get("fileType"),
                        iconPath=iconPath,
                        metadata={"description": options.get("comment", "")},
                        sequencePath=sequencePath,
                        bakeConnected=options.get("bake"))