2
$\begingroup$

I am using python drivers to set the position of a number of bones, using a script to register custom functions in the driver namespace, so that I can reference them in the expressions (bpy.app.driver_namespace['calcPosition'] = calcPosition). that works fine, but as soon as I reload the file, it does not work anymore. yes, I made sure to reload trusted, and I re-ran the script (do I have to do that?), but it simply won't work until I re-enter each and every expression and hit enter.

is this expected behavior?

is there a way to make things just work, right after opening a file?

$\endgroup$
2
$\begingroup$

you need to make sure that the Register checkbox is checked to avoid pressing Run Script every time you want your driver to execute.

enter image description here

and as mentioned in the checkbox tool tip, your script name should end with ".py"

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.