Default Python Code for Python Node in Xpresso?


#1

I can set the default Python code for a Python effector by choosing “Edit” and “Set As Default”. That way, when I load the Python effector again, all of my boilerplate Python code stays in the effector. However, for the Python node in the xpresso graphs, the “Set As Default” option is grayed out.

Is it possible to set the default Python code for the Python node within xpresso?


#2

I don’t think you can do it the way you’ve described, however, you could create the Python node as you want it and then in X-Pool menu, use the Edit>Create Pool to create a preset that can then be dragged and dropped in the future. So instead of using the default Python node in X-Pool menu search, you’d grab your own Python preset node.

python_x-pool


#3

Great idea, thanks!