← Blender.Today
  • 1
  • Published 18 Jun 2020

How could I compile and update dependencies automatically?

I find this custom driver on templates / python / driver_functions and I did it run.

But I realize that always I close and reopen the file, it need to be compiled and updated in the driver.

I try this but it doesn't compile in the open file and also I don't know how to update all dependencies after

<code> import bpy import os import sys

if name == " main ":   path = "F:/fILES/proyectos/bpy_study/Scripts"   fname01 = " driver_functions.py "

if path not in sys.path:     sys.path.append(path)

file01 = os.path.join(path, fname01)

exec(compile(open(file01).read(), fname01, 'exec'))

</code>

dlGJP.png

jose-m-vargas
18 Jun 2020

1 Comment

jose-m-vargas Author

someone? pleeeease

1