Hello,
Adding the path to the plugin in g_additionalModulePath fixed the issue.
Thank you very much for your help.
Hello,
Adding the path to the plugin in g_additionalModulePath fixed the issue.
Thank you very much for your help.
Thanks for the answer and the example.
The goal is to get the render settings and a few other parameters from a file without rendering it. I have to do it on linux so the ways to achieve it are limited.
With your plugin code I had the same results I had with the example from the documentation, nothing happened and I had the message Warning! Unknown arguments:
right before C4D END.
I install these plugins by putting the .pyp file in /opt/maxon/cinema4dr23.110/bin/plugins
but they don't seem to load. On the other hand rendering plugins seem to load and work just fine. I also had to export the envvar g_modulePath=/opt/maxon/cinema4dr23.110/bin
for the rendering plugins to load.
Am I missing any step when adding a python plugin ?
Best regards,
Hello,
I am currently trying to export the render settings from a .c4d file with python on Linux. If I'm not mistaken the only way to achieve this on Linux is to write a .pyp plugin that reads commandline arguments as explained here and use a special flag to activate a settings exporting script.
However I couldn't get any output in the console with that type of plugin, even with the example from the docs. Is it possible to use such a plugin on the Linux CLR version of c4d ?
I tried the plugins with both S24 and R23 versions in a docker container based on Ubuntu 18.04. Rendering (with Arnold or Redshift) works fine.
Any help would be greatly appreciated.
Best regards,