Set file path in palette movieEngine

Hi,

I am willing to use moveiEngine from the palette. I would need to change file path either by exporting a path from a DAT or via python but it seems not possible or it is built in a way i must follow a specific way to achieve it. I keep having “object is not subscriptable”

Any insight ?

Thanks

Hello, Can you give exact steps or a sample file that shows this problem? thanks

Hi,

Well i just tried to change the movieEngine file path from a DAT using python or by exporting a channel from a CHOP.

Seems like there are other things going on under the hood when changing this field that way.

I ended up using the GoToMovie() function and seems to work. Don’t know if it is a bug or the way it should be handled.

See simple example attached

clip_select.tox (45.5 KB)

Hi Gallo, you’re right - it doesn’t work by putting an expression into the File par. It was designed more for putting explicit file paths there or dropping movie files from the file system onto the node. But it really should work as you expect. So you would have to change line 88 of moviePlayer/timer_callbacks from:

op(‘mvspec’).par.File = parent.MvPlay.par.File

to

op(‘mvspec’).par.File = parent.MvPlay.par.File.eval()

which does an eval() of the File parameter to get the exact path while it’s transitioning to the next movie. I’ll change that in the next Official build. Thanks for that.

Hi,

Thanks for this information and for the workaround.