peng3d/world.py
def setActiveCamera(self,name):
        """
        Sets the active camera.
        
        This method also calls the :py:meth:`Camera.on_activate() <peng3d.camera.Camera.on_activate>` event handler if the camera is not already active.
        """
        if name == self.activeCamera:
            return # Cam is already active
        if name not in self.world.cameras:
            raise ValueError("Unknown camera name")
        old = self.activeCamera
        self.activeCamera = name
        self.cam.on_activate(old)
def setActiveCamera(self,name):
        """
        Sets the active camera.
        
        This method also calls the :py:meth:`Camera.on_activate() <peng3d.camera.Camera.on_activate>` event handler if the camera is not already active.
        """
        if name == self.activeCamera:
            return # Cam is already active
        if name not in self.world.cameras:
            raise ValueError("Unknown camera name")
        old = self.activeCamera
        self.activeCamera = name
        self.cam.on_activate(old)
def setActiveCamera ( self , name ) : if name == self . activeCamera : return # Cam is already active if name not in self . world . cameras : raise ValueError ( "Unknown camera name" ) old = self . activeCamera self . activeCamera = name self . cam . on_activate ( old )
Sets the active camera.
        
        This method also calls the :py:meth:`Camera.on_activate() <peng3d.camera.Camera.on_activate>` event handler if the camera is not already active.
Sets the active camera . This method also calls the : py : meth : Camera . on_activate () <peng3d . camera . Camera . on_activate > event handler if the camera is not already active .