How to import a local script/module in a script run by blenderproc ? #754
-
Hi ! I am trying to generate multiple renders for similar scene made of only one model. I created a simple class to represent my scene and import it in my main script, which I run with BlenderProc, to automate things. I get a For now, I simply pasted my class at the beginning of my script. However, I'd like to keep them separate. Is there any way to make this possible ? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, it seems that your file is not part of your PYTHONPATH: import sys
sys.path.append(FOLDER_PATH) That would be one option. Without an exact knowledge how your stuff is structured I can't explain to you how to include it otherwise. Best, |
Beta Was this translation helpful? Give feedback.
-
Well, that solved it ! Thank you very much ! I only have two scripts, both in the same folder. |
Beta Was this translation helpful? Give feedback.
Hey,
it seems that your file is not part of your PYTHONPATH:
That would be one option.
Without an exact knowledge how your stuff is structured I can't explain to you how to include it otherwise.
Best,
Max