示例#1
0
文件: extension.py 项目: yazici/anima
    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)
示例#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
示例#3
0
文件: extension.py 项目: yazici/anima
    def unmute(self):
        """Unmutes the current shot.

        :return:
        """
        pm.shot(self, e=1, mute=False)
示例#4
0
文件: extension.py 项目: yazici/anima
    def mute(self):
        """Mutes the current shot

        :return:
        """
        pm.shot(self, e=1, mute=True)
示例#5
0
文件: extension.py 项目: yazici/anima
    def get_camera(self):
        """returns the shot camera

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