looking for Python equivalent to pressing the ‘plus sign’ and opening file path/file explorer dialog.
I want to press a button on GUI and open Movie file dialog, rather than a specific movie
looking for Python equivalent to pressing the ‘plus sign’ and opening file path/file explorer dialog.
I want to press a button on GUI and open Movie file dialog, rather than a specific movie
ui.chooseFile does the trick
thanks . my Python is rusty. I don’t see how to specify this to object ‘moviefilein1’, for example.
The trick here is that you’d use a button to run the script
ui.ChooseFile()
What you get back is the path to the file you’ve chosen - so you have to do a little more legwork.
That might look like a panel execute connected to a button COMP. On state change:
filePath = ui.chooseFile()
op('someMoviefileinTOP').par.file = filePath
This would pop open a dialogue to choose a file, and then put that file path into the file par of the movie file in TOP.