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. Ross
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Ross

    @Ross

    0
    Reputation
    2
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Ross Unfollow Follow

    Latest posts made by Ross

    • How to Modify Button Parameters?

      I’m working on a Cinema 4D + Octane Render project and need help modifying the "Import Type" button parameters of an ImageTexture node. Specifically, I want to automate or script the selection of different import types , but I can’t figure out how to access or modify this button’s settings through the Python.

      I understand that Octane-related topics may not be suitable for this forum, but I've been struggling with this issue for a long time and really need help.

      20250815-232126.png

      This is my code, but it's not working as expected.

      import c4d
      
      def main():
          mat = doc.GetActiveMaterial()
      
          shader = mat.GetFirstShader()
      
          ImportType = c4d.DescID(c4d.DescLevel(1139, c4d.DTYPE_BUTTON, 0))
      
          importValue = shader.GetParameter(ImportType, c4d.DESCFLAGS_GET_0)
      
          shader.SetParameter(ImportType, 2, c4d.DESCFLAGS_SET_0)
          c4d.EventAdd()
      
      if __name__ == '__main__':
          main()
      
      posted in Cinema 4D SDK python
      R
      Ross
    • RE: About Texture Paths in MergeDocument

      @i_mazlov I get it, thanks for your reply.

      posted in Cinema 4D SDK
      R
      Ross
    • About Texture Paths in MergeDocument

      Hi everyone!
      After using MergeDocument to import a file, I need to manually specify the texture paths in the Project Asset Inspector. Am I importing the files incorrectly, or is there an additional setting I need to configure?

      import c4d
      
      def main() -> None:
          doc = c4d.documents.GetActiveDocument()
          target_flie = r"D:\01\test.c4d"
          c4d.documents.MergeDocument(doc, target_flie, c4d.SCENEFILTER_OBJECTS | 
                                                 c4d.SCENEFILTER_MATERIALS | 
                                                 c4d.SCENEFILTER_MERGESCENE)
      if __name__ == '__main__':
          main()
      
      posted in Cinema 4D SDK 2025 python windows
      R
      Ross