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. Easan
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 10
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Easan

    • RE: How to Set Void Type Attributes in GraphNode?

      @m_adam Thank you for providing an alternative method to set parameters.❤

      posted in Cinema 4D SDK
      E
      Easan
    • RE: How to Set Void Type Attributes in GraphNode?

      @ferdinand OK, I understand what you mean. Thanks for your response.

      posted in Cinema 4D SDK
      E
      Easan
    • How to Set Void Type Attributes in GraphNode?

      Hi,
      I'm currently working with GraphNode in my project and have successfully used methods like

      node.SetValue(maxon.NODE.BASE.NAME, maxon.String("some name"))
      

      to set parameters.

      However, I'm struggling with attributes that are of void type. Specifically, I need to set maxon.NODE.BASE.SOLOPORT. Could someone please guide me on how to properly set void type attributes like this?

      Any help or examples would be greatly appreciated!

      posted in Cinema 4D SDK python 2023 2024
      E
      Easan
    • RE: GetDefaultValue Not Working in C4D 2024

      @m_adam
      I'm looking forward to the next version update.
      Thank you for your response.

      posted in Cinema 4D SDK
      E
      Easan
    • GetDefaultValue Not Working in C4D 2024

      The GetDefaultValue of GraphNode doesn't seem to retrieve values from the node in 2024 the same way it did in 2023.
      How can I correctly obtain these values in the 2024 version?

      Thanks in advance!

      posted in Cinema 4D SDK python
      E
      Easan
    • RE: How to obtain the path of a selected Asset in Asset Browser

      @ferdinand
      Thank you very much for your help, your code has been extremely useful to me.
      Cheers!

      posted in Cinema 4D SDK
      E
      Easan
    • How to obtain the path of a selected Asset in Asset Browser

      I'm trying to script in Cinema 4D and I want to access the path of an Asset that's currently selected in the Asset Browser. I'm familiar with retrieving the path of an Asset, but I'm not quite sure how to identify or get the Asset that's actively selected by the user.
      Could anyone guide me on this, or share a code snippet that achieves this?

      Thanks for any help!

      posted in Cinema 4D SDK python 2023
      E
      Easan
    • RE: Accessing Redshift Material Parameters with User Data

      @i_mazlov Thank you very much for your help!

      posted in Cinema 4D SDK
      E
      Easan
    • Accessing Redshift Material Parameters with User Data

      Hello,
      I'm a beginner with Python in C4D and I've been having an issue with a Python tag for a while now and could use some assistance.
      I can successfully control material parameters using user data with the following code:

      import c4d
      
      def main():
          obj = op.GetObject()
      
          mat = obj[c4d.ID_USERDATA,1]
          strength = obj[c4d.ID_USERDATA,2]
      
          if mat is None or not isinstance(strength, float):
              print("error")
              return
      
          mat[c4d.MATERIAL_COLOR_BRIGHTNESS] = strength
          mat.Message(c4d.MSG_UPDATE)
      

      However, I'm struggling to control Redshift material parameters in the same way. For example, I need to control the [c4d.REDSHIFT_SHADER_MATERIAL_DIFFUSE_WEIGHT] parameter.

      What changes do I need to make in order to get this working properly?

      Any help would be appreciated, thank you!

      posted in Cinema 4D SDK 2023 python
      E
      Easan