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

    Topics created by .del

    • .

      Python Documentation - Icon Color

      Cinema 4D SDK
      • 2024 python • • .del
      4
      0
      Votes
      4
      Posts
      931
      Views

      i_mazlovI

      Hi @del,

      It's hard to predict future changes. It's likely the c4d.ID_BASELIST_ICON_COLORIZE_MODE_CUSTOM + 1 approach would stay untouched for the compatibility reasons, but who knows if there'd be any change requests that'd break this.

      Cheers,
      Ilia

    • .

      Python: GetTags() returning non-existent tags

      Cinema 4D SDK
      • python • • .del
      9
      0
      Votes
      9
      Posts
      1.6k
      Views

      .

      thanks @i_mazlov

    • .

      Material Tag: Fit to object

      Cinema 4D SDK
      • python 2024 • • .del
      3
      0
      Votes
      3
      Posts
      570
      Views

      .

      Hi @m_adam - In this particular instance I'm calling it on objects that have children and I'm getting the prompt to include sub objects. If it were a modeling command or something like that it may include the ability to include or exclude the children programmatically.

      I'm creating 30 objects and each object has six flat projections that I want to set to the size of the object. That's 180 confirmation clicks.

    • .

      OBJ Import setting not changing

      Cinema 4D SDK
      • python 2024 windows • • .del
      5
      0
      Votes
      5
      Posts
      841
      Views

      ferdinandF

      Hey @del,

      Thank you for pointing out that this part of our examples, I overlooked this aspect this morning. I have fixed the issue in our local repository for import_obj_r13.py. The updated line is:

      objImport[c4d.OBJIMPORTOPTIONS_PHONG_ANGLE_DEFAULT] = c4d.utils.DegToRad(22.5)

      and it will go live with the next docs update. I cannot update the legacy version of the SDK in import_OBJ.py as I lack the permissions to write there even in our local repository.

      Cheers,
      Ferdinand

    • .

      Get all textures for a material

      Cinema 4D SDK
      • • • .del
      9
      0
      Votes
      9
      Posts
      2.6k
      Views

      M

      Hello @del,

      without further questions or postings, we will consider this topic as solved by Wednesday 31/05/2023 and flag it accordingly.

      Thank you for your understanding,
      Maxime.

    • .

      Possible typo in documentation

      Cinema 4D SDK
      • python • • .del
      3
      0
      Votes
      3
      Posts
      502
      Views

      .

      Thanks for the info and adding the tag. I totally forgot that the Cafe' merged. I'm so used to approaching from my view. I actually answered somebodies question yesterday and at the very end saw the C++ tag and hit delete 🙂

      Thanks for tips on the GUI. I was able to implement what I needed.

    • .

      UV Peeler - accessible?

      Cinema 4D SDK
      • python • • .del
      3
      0
      Votes
      3
      Posts
      437
      Views

      .

      HI -

      Thanks for the response!

      I'm going to go with the sendModelingCommand method. I never would have thought to put the CallCommand value in there.

      This is really going to help me finish this script. I appreciate your help.

      thank you,
      .del

    • .

      Python uvTag.GetSlow(poly) data not matching what's in Structure Manager

      Cinema 4D SDK
      • python s24 • • .del
      10
      0
      Votes
      10
      Posts
      1.6k
      Views

      ferdinandF

      Hello @del,

      without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022.

      Thank you for your understanding,
      Ferdinand

    • .

      Enabling Team Render in Render Queue

      Cinema 4D SDK
      • s24 python • • .del
      4
      0
      Votes
      4
      Posts
      797
      Views

      CairynC

      (Yes, I notice that the thread has been closed, and marked as solved, and I probably shouldn't barge in, but it seems the original script error has never been addressed, so I must mansplain because that's the obnoxious guy I am.)

      Two points:

      The error in the script above is that the index used in SetUseNet is wrong.
      The indices in the BatchRender element list begin at 0, so the first valid index is 0, and the last is GetElementCount()-1.
      dBatchCount starts as GetElementCount(), which is fine as counter, but as an index, it is the first unused index.
      Then this counter is increased += 1, so now it is the second unused index after the list.
      When AddFile is called with that index, it simply adds the file as last element because it cannot leave empty gaps in the list. It returns True although it didn't use the desired index - it used index-1.
      Now SetUseNet is called with the same index. The reason it fails is that this index is not the index that AddFile actually used. This index is not even valid. There is no element with that index. So, nothing happens.
      If you use dBatchCount-1 as index at this point, or simply never increase dBatchCount in the first place, the script works fine.

      The actual API error is that SetUseNet does not raise an IndexError as the docs claim.
      (Other methods like GetElementStatus do.)

      Okay, I go annoy someone else now.

    • .

      OBJ Export Options

      Cinema 4D SDK
      • • • .del
      10
      0
      Votes
      10
      Posts
      1.6k
      Views

      .

      Thanks for looking at it Manuel. Sounds like your getting the same behavior I'm seeing.

      I'll add something to my script to parse it out.

      Thanks Manuel and Cairyn for taking time to help.

      .del

    • .

      Calling Bevel tool and setting parametrs

      Cinema 4D SDK
      • python r19 sdk • • .del
      9
      0
      Votes
      9
      Posts
      1.8k
      Views

      M

      settings[c4d.MDATA_BEVEL_RADIUS] = 0.5
      Works fine here.

    • .

      SaveDocument() file name character limit?

      Cinema 4D SDK
      • python windows r19 • • .del
      3
      0
      Votes
      3
      Posts
      681
      Views

      .

      Problem was with the total path length versus the file name length. 256 characters for the entire path and filename.

    • .

      UVCOMMAND question?

      Cinema 4D SDK
      • python r19 • • .del
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      .

      Thank you for the guidance. I'll dig into that info.