Ejemplo n.º 1
0
    def set_camera(self, camera):
        """sets the shot camera

        :param camera: pm.Camera instance or a string
        :return:
        """
        pm.shot(self, e=1, currentCamera=camera)
Ejemplo n.º 2
0
def create_shots():
    start = 1
    end = 24
    for i in range(10):
        pm.shot('shot_{}'.format(i), startTime=start, endTime=end)
        start = end + 1
        end = start + 24
Ejemplo n.º 3
0
    def unmute(self):
        """Unmutes the current shot.

        :return:
        """
        pm.shot(self, e=1, mute=False)
Ejemplo n.º 4
0
    def mute(self):
        """Mutes the current shot

        :return:
        """
        pm.shot(self, e=1, mute=True)
Ejemplo n.º 5
0
    def get_camera(self):
        """returns the shot camera

        :return:
        """
        return pm.PyNode(pm.shot(self, q=1, currentCamera=1))