Esempio n. 1
0
    def archive_current_scene(cls):
        """archives the current scene
        """
        from anima.env import houdini
        from anima.env.houdini.archive import Archiver
        from anima.utils.archive import archive_current_scene
        h_env = houdini.Houdini()
        version = h_env.get_current_version()
        archiver = Archiver()

        archive_current_scene(version, archiver)
Esempio n. 2
0
    def update_render_settings(cls):
        """updates the render settings (ex: fixes output path and AOV paths
        etc.)
        """
        from anima.env import houdini
        h = houdini.Houdini()
        v = h.get_current_version()
        if not v:
            print('no v, returning!')
            return

        h.set_render_filename(version=v)
Esempio n. 3
0
    def range_from_shot(cls):
        """sets the playback range from the related shot item
        """
        from anima.env import houdini
        h = houdini.Houdini()
        v = h.get_current_version()
        if not v:
            print('no v, returning!')
            return

        from stalker import Shot
        if not v.task.parent or not isinstance(v.task.parent, Shot):
            return

        shot = v.task.parent
        h.set_frame_range(shot.cut_in, shot.cut_out)