Start end frame on camera that changes playback range

27 views
Skip to first unread message

mikhail...@berkeley.edu

unread,
Jan 29, 2018, 4:34:46 AM1/29/18
to Python Programming for Autodesk Maya
Hey there,

What I want to do is to have a script that adds custom "start frame" and "end frame" attributes to cameras. As the user sets these, and is looking through that camera, the playback range changes down there on the timeline to whatever the start frame and end frame attributes are set to. As the user changes cameras, the playback range is updated to whatever the start and end frame on that camera is.

Now I've done this via script jobs. However, they seem pretty clunky. Is there a better way to do this?

Justin Israel

unread,
Jan 29, 2018, 4:51:55 AM1/29/18
to python_in...@googlegroups.com
If you already have this working via scriptJobs then you might just stick with it. You could convert to using the API via the MMessage classes. But these are just equivalents to the higher level scriptJob. Sometimes they have some more granular options. 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/961236b8-fd03-46fb-a248-c31bee591bf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcus Ottosson

unread,
Jan 29, 2018, 4:52:12 AM1/29/18
to python_in...@googlegroups.com
Are you able to share what you've tried so far?​
Reply all
Reply to author
Forward
0 new messages