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).
hello guys,
i finally updated to R23 and have now an issue with my startup code. to load and set some variables i used the $g_prefspath/python37/maxon_generated/__init__.py file. in R21 it worked perfectly. now in R23 the script didn't execute anymore. i tried to delete the library and tested it on different machines.
$g_prefspath/python37/maxon_generated/__init__.py
does some of you have an idea? or is there a better solution to execute some python code at startup?
thank you for any help! best, marc.
Hi @marc_angele,
thank you for reaching out to us. Your problem is caused due to a change of how Python is integrated with R23+ compared to R20.
{USERPREFS}/python37/maxon_generated/__init__.py
maxon
python_init.py
{USERPREFS}/python37/python_init.py
__init__.py
C4DPL_INIT_SYS
C4DPL_INIT
PluginMessage()
For more complex tasks you might have to run a script with c4dpy before you actually start Cinema or postpone your code to a later point in PluginMessage.
c4dpy
PluginMessage
Cheers, Ferdinand
hi @ferdinand thank you very much for your response!
the python_init.py does the job perfectly
great support, thanks a lot!
best, marc.