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?