示例#1
0
 def after_parented(self, parent):
     """
     This method should be implemented by a subclass. Automatically
     called if this Layer instance is parented to another layer instance.
     """
     self._after_parented(parent)
     self.__evh.emit(event.LayerEvent(event.AFTER_PARENTED, self))
示例#2
0
 def after_init(self, ol):
     """
     Executed after a layer has been initialized and added to an outline.
     Emits an event.AFTER_INIT signal.
     """
     self._after_init(ol)
     self.__evh.emit(event.LayerEvent(event.AFTER_INIT, self))
示例#3
0
 def after_execute(self):
     """
     Executed after the execute() method has been run even if the
     frame failed. Used for doing cleanup operations that should
     run even after a frame failure.
     """
     self._after_execute()
     frames = self.get_local_frame_set(self.__frame)
     self.__evh.emit(
         event.LayerEvent(event.AFTER_EXECUTE, self, frames=frames))
示例#4
0
    def setup(self):
        """Setup is run once before the job is launched
        to the render farm.  This method would be used for
        any pre-launch operations that may be required.
        """
        self.check_required_args()
        self._setup()

        for child in self.__children:
            child.setup()

        # Emit the setup event.
        self.__evh.emit(event.LayerEvent(event.SETUP, self))
示例#5
0
 def before_execute(self):
     """
     Executed before all execute checks are started.
     """
     self._before_execute()
     self.__evh.emit(event.LayerEvent(event.BEFORE_EXECUTE, self))