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. wanderingstan
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    wanderingstan

    @wanderingstan

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

    wanderingstan Unfollow Follow

    Latest posts made by wanderingstan

    • Assign Render Path

      Has something changed in the last few years? I get an error running this.

      >>> renderData[c4d.RDATA_PATH] = r"MyPicturePath.exr"
      TypeError: GeListNode_ass_subscript expected Description identifier, not str
      The above exception was the direct cause of the following exception:
      SystemError: _PyEval_EvalFrameDefault returned a result with an error set
      

      c4d.RDATA_PATH evaluates to a string, but its looking for the type Description identifier

      posted in Cinema 4D SDK
      W
      wanderingstan
    • RE: Assign Render Path

      Now in 2022 I'm getting an error using SetFilename(). It expects an int where c4d.RDATA_PATH evaluates to the string 'from_code_filename'. I'm new to C4D..has the c4d constants been changed from ints to strings?

      Example:

      >>> doc.GetActiveRenderData().GetData().SetFilename(c4d.RDATA_PATH, str("my_filename"))
      Traceback (most recent call last):
        File "console", line 1, in <module>
      TypeError: an integer is required (got type str)
      
      posted in Cinema 4D SDK
      W
      wanderingstan