driver_issues.blend (859.4 KB)
I have a script in this blend file that maps a bone’s rotation from 0 to -90 degrees to a simple deform modifier to go from 0 to 360 degrees. However, when re-opening the blend file or making any change I have to go into the driver and update dependencies for each object’s driver, is there a way to automate this?
So I seemingly fixed my own problem, it turns out whether the python file is internal to the blend file or external, you need to end the text file name
in blender with “.py”. Despite my preferences allowing auto-execution of python scripts and even though my external text file ended in .py, it didn’t auto-execute unless the text file name
inside blender itself ended in .py. It didn’t seem super intuitive to have to do that twice but if anyone else has that issue, try that.
scripts that are in the text editor are saved in a blender data collection and don’t necessarily have parity with an outside file unless you explicitly save it. the ‘external file’ you saved was just a copy, the “real” script is the one inside blender’s data collection. that’s an important distinction to make because you may find yourself opening up your external file in another IDE and making a change and wondering why it’s not being updated
1 Like
Thank you for the clarification! I’m new to the scripting side of Blender so it’s good to know how it’s actually handling things.