2

I wrote a py script for a custom export. I'd like to append that script to my blend file and call it using some parameters. The following script is one folder above my blend file:

from sys import path
path.append('//../fbx_collection_export.py')
from fbx_collection_export import export

When running it, I get the this error:

ModuleNotFoundError: No module named 'fbx_collection_export'

Q: What am I doing wrong and how can I fix it?

brockmann
  • 12,613
  • 4
  • 50
  • 93
readock
  • 41
  • 4

1 Answers1

2
from sys import path
path.append(bpy.path.abspath("//")+'/../Scripts')
from fbx_collection_export import export
readock
  • 41
  • 4