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)
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
def unmute(self): """Unmutes the current shot. :return: """ pm.shot(self, e=1, mute=False)
def mute(self): """Mutes the current shot :return: """ pm.shot(self, e=1, mute=True)
def get_camera(self): """returns the shot camera :return: """ return pm.PyNode(pm.shot(self, q=1, currentCamera=1))