Files and modules organization
-
Hello there
There is my main
module A
. It should use amodule B
(located in the same folder) and Python's standart moduleYAML
(which doesn't exist by default).
Whats the best solution? Should I just downloadYAML
and copy it tomodule A
folder?Right now
module A
is placed here%user%\AppData\Roaming\Maxon\Maxon Cinema 4D R25\library\scripts\
I'm not sure, but maybe I should use another folder, e.g.
E:\C4D_scripts
and use environment variableC4DPYTHONPATH39
?How do you orginize your files and modules?
-
Hello @kisaf,
Thank you for reaching out to us. There are multiple search paths being added to our Python interpreter, both predefined and custom. The custom module search paths registered with
C4DPYTHONPATHXX
are one option but not the only one.I recently updated the Python libraries manual in the Python docs, the manual has not been reviewed yet, so you will still find typos in there, but it will convey the information you are interested in. The manual will be released in an upcoming version of the SDK, find below the markup of the manual as a 'preview'.Please excuse the informal approach, but I am quite short on time, and the manual will contain all relevant information for you, so I am taking this route as an exception.edit: The manual is published for quite some time now, I just forgot to update this thread: Cinema 4D Python Documentation: Python Libraries Manual
Cheers,
Ferdinand -
AWESOME! Thanks @ferdinand!!!