Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. knekke
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    knekke

    @knekke

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

    knekke Unfollow Follow

    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
      K
      knekke
    • 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
      K
      knekke
    • 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
      K
      knekke
    • 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
      K
      knekke