Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/07/2012 at 08:18, xxxxxxxx wrote:
Hi everybody,
I'm quite new to python and C4D programming.
I use C4D's script manager to write my code. As my script grew big, I created a second file in which I put a couple of functions. My files look like that : main.py mymodule.py
I import the functions using : from mymodule import function1, function2
It seems that I need to restart C4D to get the changes made to mymodule.py taken into account. Is is the expected behavior or am I making a mistake somewhere ?
Alex
On 30/07/2012 at 09:59, xxxxxxxx wrote:
Hi,
I think you should reload your modified module at the beginning of your script with the standard Python function: reload(mymodule)
On 31/07/2012 at 01:46, xxxxxxxx wrote:
Thanks ! That was it.
On 03/12/2012 at 14:00, xxxxxxxx wrote:
Hi there Al3d and Yannick,
I was wondering if you could help as you seem to have cracked the problem.
I want to make my own modules for C4d in python but I dont know where to put them.
I keep getting the error message: Import Error: No Module named xxxx
Any help would be great. I am using Windows.
Thanks!
On 04/12/2012 at 01:45, xxxxxxxx wrote:
Originally posted by xxxxxxxx I want to make my own modules for C4d in python but I dont know where to put them. I keep getting the error message: Import Error: No Module named xxxx Any help would be great. I am using Windows.
Originally posted by xxxxxxxx
Hi, You have to copy your own module to:
{USER_FOLDER}/library/python/packages/{osx/win32/win64}
This information is included in the docs' FAQ page ("Where do I store 3rd party modules for Python?" question).