I'm attempting to write a particle cache exporter and I'm having trouble getting the Python module to use functions that are stored in a different section.
My instinct was to create a new output driver type as the category made sense, but there were a few challenges which I'll mention here for others facing the same issues:
The ‘Render to Disk’ button's Callback Script section is greyed out. To run code when this button is pushed you need to
- Create a file parameter called ‘soho_program’ and change it's default channel value to ‘opdef:.?PythonModule’
- Create a file parameter called ‘soho_outputmode’ and change it's default to 2
import toolutils foo = toolutils.createModuleFromSection('bar', kwargs['type'], 'PFX_Exporter_Functions')
Does anyone know how to import modules from the other sections when using the Driver type?