peng3d/actor/__init__.py
def setAnimation(self,animation,transition=None,force=False):
        """
        Sets the animation the model of this actor should show.
        
        ``animation`` is the name of the animation to switch to.
        
        ``transition`` can be used to override the transition between the animations.
        
        ``force`` can be used to force reset the animation even if it is already running.
        
        If there is no model set for this actor, a :py:exc:`RuntimeError` will be raised.
        """
        if self.model is None:
            raise RuntimeError("Can only set animation if a model is set")
        self.model.setAnimation(self,animation,transition,force)
def setAnimation(self,animation,transition=None,force=False):
        """
        Sets the animation the model of this actor should show.
        
        ``animation`` is the name of the animation to switch to.
        
        ``transition`` can be used to override the transition between the animations.
        
        ``force`` can be used to force reset the animation even if it is already running.
        
        If there is no model set for this actor, a :py:exc:`RuntimeError` will be raised.
        """
        if self.model is None:
            raise RuntimeError("Can only set animation if a model is set")
        self.model.setAnimation(self,animation,transition,force)
Sets the animation the model of this actor should show.
        
        ``animation`` is the name of the animation to switch to.
        
        ``transition`` can be used to override the transition between the animations.
        
        ``force`` can be used to force reset the animation even if it is already running.
        
        If there is no model set for this actor, a :py:exc:`RuntimeError` will be raised.