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. ajcav2
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by ajcav2

    • RE: How can I modify the substance shader asset filepath for a material using C4DPy?

      Hi @ferdinand , thanks for the response. Yes, we are using the c4dpy executable delivered with Cinema 4D when we run into this error. We do not see this issue when using the Python interpreter within Cinema 4D.

      I'm not able to post our setup to the forum, so I've emailed the address you provided. Thanks!

      posted in Cinema 4D SDK
      A
      ajcav2
    • How can I modify the substance shader asset filepath for a material using C4DPy?

      Hi, I'm wondering if it's possible to modify the shader properties for a C4D Shader Node via C4DPy. My goal is to modify this value.
      d4a62d04-aaf0-4034-85a4-1135208e16a8-image.png
      In the GUI, I could open up a console and get the corresponding node like this:

      while current_node is not None:
          if current_node.GetName() == 'Base Color':
              break
          current_node = current_node.GetNext()
      

      And then I could access the red-outlined variable through:
      current_node[c4d.GV_REDSHIFT_BAKER_SHADER][c4d.SUBSTANCESHADER_ASSET][c4d.SUBSTANCEASSET_FILENAME], but this doesn't seem to work when using C4DPy, as current_node[c4d.GV_REDSHIFT_BAKER_SHADER][c4d.SUBSTANCESHADER_ASSET] yields None. How can I modify this parameter via C4DPy?

      posted in Cinema 4D SDK python
      A
      ajcav2
    • RE: Modify rounded edges radius via python script

      Hi Maxime. Sorry for the confusion, I was referring to a Redshift material node, and a specific node called "Round Edge". We know that we can edit the rounded edges node via the API in Xpresso materials already, but we were trying to not use Xpresso here. Turns out, we can actually edit the Round Edge node in Redshift materials when we use c4dpy instead of executing the script by placing a .pyp file in the plugins folder. This solution works for us, so I think this issue is resolved. Thanks!

      posted in Cinema 4D SDK
      A
      ajcav2
    • Modify rounded edges radius via python script

      Hello, I was wondering if it is possible to control the rounded edges radius of a node redshift material via a python script. So far, I’ve only been able to accomplish this in the GUI.

      posted in Cinema 4D SDK python
      A
      ajcav2