Python Error / Movie File In

Hello,

Can anyone help me out with this error, I want the moviefile to play when the timer par DONE is 1, I used a Eval DAT to get the correct python reference, but I can manage to play the movie.

I been having this issue and cant find any answers on it.

I will acept any guidance.

Thanks and have a great day!
Movie playertest1.toe (834.7 KB)

Hi @felix.ramos98,

The error is due to the path reference to the Timer CHOP being a bit wrong:

The MovieFileIn TOP is located at /project1/Movies/Movies_wall1 and the Timer CHOP is at /project1/control/tiempo. Now to get from the Movie to the Timer, you’d have to go 2 levels up and then down into control. Your expression in the MovieFileIn’s play parameter is: parent(3).op('../../control/timer2')['done']

parent(3) takes you to /project1
op('../../control/timer2') would now look 2 more levels up, although there is only one level left till you reach root.

The correct reference here therefor would be one of:

  • parent(3).op('control/tiempo/timer2')['done']
  • op('../../control/tiempo/timer2')['done']
    or if you make use of parent shortcuts:
  • parent.Project.op('control/tiempo/timer2')['done']

So you went a couple too many levels up and also missed the tiempo component.
If you are unsure or don’t want to type out these things, you can also drag the done channel onto the Play Parameter and select Chop Reference from the dropdown.

Hope this helps
Cheers
Markus