I have an imagePlane node in which I am using an image sequence, say 
myPicture.001.jpg - myPicture.030.jpg.

However, on the same imagePlane node, I have also set its Frame Offset 
attribute with a value of -10, and so the image sequence will be starting 
off at Frame 11 and ends at Frame 41.

As I would like the imagePlane to hold first and last frame (eg. if I 
navigate to Frame 5, it will stays at myPicture.001.jpg, and if I navigate 
to Frame 50, it will stays at myPicture.030.jpg). While I understand that 
this 'holding' can be done with me removing the expression and sets a 
keyframe at Frame 11 and Frame 41 respectively, but this is doable if I am 
doing it manually within the scene.

My question here is how can I do this in a pythonic manner?
Initially, I tried to use 
`cmds.getAttr("{0}.frameExtension".format(my_imagePlane))` in hopes that it 
has a range of numbers and I can derive the first and last number from it. 
but I was wrong..

As the field is still driven by expression, how can I determine Frame 11 
and Frame 41 are the frames that I should keyed?

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/a3e88d80-ab9a-4d07-a0cb-e139fa1f93ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to