From what I have read the url for the .mtl is encoded into the .obj so you'd have to parse and replace that url when reloading the obj. if possible.
Otherwise could you just use an image texture instead of the .mtl in the first instance?
In about 2003 with my G4 tower I used a great little bit of software called BTV from https://www.bensoftware.com/ It had a motion detection feature which at the time I couldn't find elsewhere.
When my new 'neighbours' moved in recently I looked around the app store for something FREE to do motion triggered recording and didn't find what I was looking for....
The app records video (Image only) in h.264 at the native framerate and size of the source.
It's all in one window with a couple of UI controls.
Found the relevant bit about relative file paths in the manual: 'If the file’s location doesn’t start with file:// or /, then it’s treated as a relative path. This is the option you’d typically want when sharing the composition with others. If running the composition on a different computer than it was created on, the file needs to exist in the same location relative to the composition (.vuo) file. If running an application exported from the composition, the file needs to exist in the Contents/Resources folder inside the application package'
So I should probably add a text/URL field/ save path....
Attached a revised and improved composition. Added a couple of UI elements to choose camera input and adjust sensitivity.
The composition saves movs to whatever folder the comp is within but when I try the same with an exported app it fails to save the movies anywhere.
What is the correct shortcut URL for saving files to within the enclosing folder for use within an exported app?