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).
@m_adam said in Pipeline integration:
C4DPL_PROGRAM_STARTED is working as before
Ok, but why:
import c4d def PluginMessage(id, data): if id==c4d.C4DPL_PROGRAM_STARTED: doc = c4d.documents.GetActiveDocument() doc.InsertObject(c4d.BaseObject(c4d.Ocube)) # Works doc[c4d.RDATA_RENDERENGINE] = 1036219 #redshift Doesn't Work
?
c4d.C4DPL_PROGRAM_STARTED
Has something changed in R20 regarding plugin load order or program_started execution time? I used a startup script to change the renderer to redshift, but while it works in R19 it doesn't in R20.
@m_adam thanks for fixing the post. Next one will be better, I promise
That snippet looks like it should do the trick. There is no message for newSceneCreated, but I guess I could just save a new.c4d at the end of my startup procedure.
Thanks, Thomas
Hi,
I'm trying to configure C4d at startup/newScene to match the current project specs in python. I see there is the possibility of running python_init.py at startup, but it seems completely useless because no doc has been created yet and it is not possible to change stuff for the scene (e.g. set renderer to Redshift) Another possibility would be to have a "new.c4d" and have our launcher copy it to the userfolder before startup, but then all settings would be static and I can't set anything project specific (e.g. renderoutput). How do people tackle stuff like this? Thanks!