Resave tox file without file dialog

If a component is referencing an external tox file, is there a way to save and overwrite it directly without the extra 2 clicks of the file save dialog? Them clicks are adding up :slight_smile: Plus, even though the save path is autofilled it always makes me nervous enough to check and confim the path

Yes, there are many ways to do this! The easiest being
op('name').save()

There’s also:
op('name').save('output.tox') # supply name
op('name').save('C:/Desktop/myFolder/output.tox', createFolders=True) # supply name and createFolder flag

And of course, folks have written some amazing components that handle this sort of thing intelligently (only saving when the COMP is dirty (changed), for example). Matthew Ragan, Elburz Sorkhabi, Tim Franklin… they all have great components for saving and managing external toxes.

This is my approach: GitHub - dylanroscover/Embody: Externalize TouchDesigner components and scripts

1 Like