Esempio 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)
Esempio 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
Esempio n. 3
0
    def unmute(self):
        """Unmutes the current shot.

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

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

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