Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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. SteveJLV
    3. Topics
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 10
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by SteveJLV

    • S

      Info GetUserDataContainer and RemoveUserData switched

      Cinema 4D SDK
      • sdk • • SteveJLV
      2
      1
      Votes
      2
      Posts
      371
      Views

      M

      Thanks, this is going to be fixed in the next documentation release.

      Cheers,
      Maxime.

    • S

      How to use FILEOPEN_APPEND in the HyperFile Class ?

      Bugs
      • • • SteveJLV
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      M

      Hi @SteveJLV, the APPEND mode is not supported by the HyperFile.

      The FILEOPEN enum is also used in BaseFile, which is the underlying class used by the HyperFile. BaseFile properly support Append mode, but extra code in the HyperFile prevent it to work correctly.
      So far I don't see any workaround possible for you in Python, the only way would to first read the HyperFile and rewrite everything + the things that you want to Append (pretty inefficient).

      I opened a bug report, to support APPEND within HyperFile.
      I set this post to solved, and I added the tag ToFix t your topic, but don't worry we will keep you in touch when a fix will be available but we can't say when it will be available neither if it will be fixed.
      Cheers,
      Maxime.

    • S

      Vector.__xor__(self, other) error in documentation

      Cinema 4D SDK
      • python • • SteveJLV
      3
      1
      Votes
      3
      Posts
      454
      Views

      ferdinandF

      Hello @SteveJLV,

      the example has been fixed and both computations now will reflect the correct result. The fixed example will be included with an upcoming release of the Python SDK documentation.

      Cheers,
      Ferdinand

    • S

      How to get to the str-value in a UserData Integer Cycle

      Cinema 4D SDK
      • python • • SteveJLV
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      S

      @stevejlv I found a workaround: the value part in the value;string Cycle option list does not have to be 0,1,2 etc.
      So I can give them the exact value as the string part (as long as they are int) and get the value I want the old fashioned way: [c4d.ID_USERDATA,1]

    • S

      How to keep the point coordinates of a polygonObject up to date in Python code

      General Talk
      • python • • SteveJLV
      3
      0
      Votes
      3
      Posts
      944
      Views

      M

      Hi @SteveJLV welcome in the plugincafe community,

      I would like to point you to some rules:

      Read Before Posting. Nothing wrong here, but just in case. Q&A New Functionality. I've setup your topic correctly.

      As you already figured it out, you never assign a new value to the variable. In Python, everything is passed by value by default in 90% of the time.
      Meaning when you do x = y will actually copy y to x, so afterward if you do x + 10 it will not affect y value.

      If you have more questions, don't hesitate.
      Cheers,
      Maxime.