嘿所以在玛雅使用python我导入的照相机被锁定与他们的键控动画,我只是想在底部的时间滑块更新到导入相机的动画长度。我可以调整时间片来调整我只是无法找到关键帧来通过python进行调整。 (例如:我导入4个摄像头,1个摄像头是10个关键帧,2个和3个是15个关键帧,然后是52个,所以我希望时间滑块是1-52,我可以让它移动但我不知道如何找到52号)玛雅蟒蛇和相机动画
编辑:对不起,我基本上导入我的相机
cams = [cam1,cam2,cam3,cam4]
的凸轮X:
cmds.file(x, i=True, dns=True, rnn = True) #i for import
# this is how i change the timeslider but I want it to
# be the number of keyframed animation on the camera
cmds.playbackOptions(max=1000)
pymel or maya.cmds? – mhlester
你能发布相关的代码来设置timeslider并且有一个摄像头对象可以工作吗? – mhlester