Navigation

    • Login
    • Search
    1. Home
    2. ajcav2
    A

    ajcav2

    @ajcav2

    1
    Reputation
    4
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

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

    Best 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 •

    Latest 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 •
    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 •
    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 •
    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 •