Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. knekke
    K

    knekke

    @knekke

    0
    Reputation
    4
    Posts
    99
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    knekke Follow

    Best posts made by knekke

    This user hasn't posted anything yet.

    Latest posts made by knekke

    RE: Pipeline integration

    @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
    

    ?

    posted in Cinema 4D SDK •
    RE: Pipeline integration

    @m_adam said in Pipeline integration:

    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.

    posted in Cinema 4D SDK •
    RE: Pipeline integration

    @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

    posted in Cinema 4D SDK •
    Pipeline integration

    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!

    posted in Cinema 4D SDK •