Lenght from Switch

HI Guys,

I have a doubt why it is not possible to get the lenght from a Switch. I have 3 videos in a Switch TOP and a INFO CHOP (where I can find the lenght), When I connect the INFO CHOP to the video(moviefilein) I can find the lenght, when I connect to a switch, that is playing the same movie the lenght information does not appear?

How can I get the lenght remaing to finish the movie in a switch?

best regards

Here’s a really simple way to do it, attached. Just have your info for each movie and then a chop Switch that mimics the index of your movie switch. This is achieved with a par reference expression in the chop switch back to the TOP switch.

Does that help?

The thing to keep in mind is that a switch TOP is only switching between its incoming frame/images, it doesn’t have much knowledge of what kind of operators are connected to it. You could have a ramp, a movie and a video in all going to the same switch.

If for some reason you needed to get more complicated you could use python to examine the switch’s index and then follow the connector for that input back to the op where it came from and ping the operator (if its a movie in) for its length and current index, but that seems overkill and will not perform as well.
movieInfoSwitch.toe (4.26 KB)

Thanks Alot. It helped me solve the problem!

tks