It's not everyday that you get to make a new script just by changing one line of code in another script. As I was posting the tg_copy_coords_to_selected.py script I realized you could easily reset the xyz coordinates to the origin of the project by changing one line in the program. It's taken me longer to write the documentation and post this to the forums, but Terragen users are worth it!
This script has no UI. Just select the nodes in the Node Network and run the script. The nodes do not have to be the same type of node. For example, you can select a Simple Shape shader node which uses the Position parameter for its xyz coordinates and select a TGO reader node which uses the Translate parameter for its xyz coordinates. Both nodes will be reset to the origin of the project, i.e. the xyz coordinates <0, 0 , 0>.
"Running the script" currently means to double click the Python script filename from wherever you've saved it to disk on your computer. In an upcoming post I'll show you a couple of ways to simplify the execution of a script, so running it will be more at your fingertips.
This script is now included with the
redmaw-tg-toolkit repository.
Click the link below for download and installation information for the entire toolkit.
https://github.com/RedMawVFX/redmaw-tg-toolkitOr, click the link below to go directly to the tg-set-coords-to-origin folder in the toolkit.
https://github.com/RedMawVFX/redmaw-tg-toolkit/tree/main/scripts/tg-set-coords-to-origin