I see the script portion of a shelf tool is included in the shelf tab file with all others tools and tool data.
I want to have the script portion to be outsourced to a file per tool, so that I can focus on the code per tool in an external IDE and have a repository that I can sync across locations.
What's the common way to this? Any example?
In XSI I would in the tool dialog just point to a .py file.
So far I'm doing this:
- Create a folder in any of the python2.7libs folders be it HOME or HSITE. For example, PRB_HOM folder with a file obj_material_split.py, which contains a function wrapping what I want to execute, for example in this case, main().
- In the shelf tool Script tab have something like:
from PRB_HOM import obj_material_split obj_material_split.main()
Thanks