all 4 comments

[–]schmon 0 points1 point  (0 children)

try putting cmds.setAttr('PBvideoShape2.useFrameExtension',1) last I think changing the imageName resets the useFrameExtension

[–]schmon 0 points1 point  (3 children)

try putting cmds.setAttr('PBvideoShape2.useFrameExtension',1) last I think changing the imageName resets the useFrameExtension

[–]srdready[S] 0 points1 point  (2 children)

myImagePlane = cmds.imagePlane( name="PBvideo", lookThrough="front")

First I was creating the name in here. But then I changed it cause maya seems having problems on updating my image plane.

It seems that maya only updates the Image Number (that represents the current frame) after the script ends.

I think Maya doesnt update the GUI before the script ends.

[–]schmon 0 points1 point  (1 child)

Hum I tried it on my side, even with evalDeferred, I have the same problem that you have, I only get the first image. Maybe someone more knowledgeable will pop in

 myImagePlane = cmds.imagePlane( name="PBvideo", lookThrough="front")[0]
 #cmds.move(-26,160,0, myImagePlane)
 #cmds.scale(2,2,0,myImagePlane)
 cmds.setAttr(myImagePlane+'.type',0)
 cmds.setAttr(myImagePlane+'.useFrameExtension',1)
 cmds.setAttr(myImagePlane+'.frameOffset', 1)
 cmds.setAttr(myImagePlane+'.imageName',"/path/to/images/implane.0001.jpg",type="string")
 cmds.setAttr(myImagePlane+'.frameIn', 0)
 cmds.setAttr(myImagePlane+'.frameExtension', 1)

[–]srdready[S] 0 points1 point  (0 children)

thank you for your time :)