Python and MovieFileIn file path change

Hello,

Does anyone have experience with using Python to change the file path of a MovieFileIn? I want to use OSC input to change the file path of MovieFileIn e.g. if channel 1 has a value of 1, import blueButterfly.jpg otherwise import yellowButterfly.jpg.

So far in an OSC DAT I have this working:

def onReceiveOSC(dat, rowIndex, message, bytes, timeStamp, address, args, peer): if op('oscin1')['sensor0']==0: print("uno") else: print("dos") return

Thank you!

1 Like

Might you be looking for something like:
op(‘moviefileinname’).par.file = ‘blueButterfly.jpg’

‘.par’ lets you access a parameter and ‘.file’ is the parameter that holds the path

That’s exactly what I was looking for!! Thank you :smiley: