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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Swinn
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 60
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Swinn

    • SwinnS

      update User Data with Preset info

      Cinema 4D SDK
      • python • • Swinn
      5
      0
      Votes
      5
      Posts
      715
      Views

      ferdinandF

      Hi,

      you cannot, because the data container of a BaseList2D is not dynamically typed (like Python itself), but bound to data types specified in its description. If you want to change the data type of an user data element, you will have to modify the description of that element via GetUserDataContainer and SetUserDataContainer. There is also no 2D-Vector type in Cinema, only the crosshair thing custom GUI which you can apply to a Vector description element.

      Cheers,
      zipit

    • SwinnS

      Redshift deleting using old information

      Cinema 4D SDK
      • • • Swinn
      17
      0
      Votes
      17
      Posts
      2.1k
      Views

      ManuelM

      hi,

      your question is sometimes not obvious 😄
      Even with the scene it's a bit compicated.

      What i can say about your code is that you should be more defensive in your code. Always check the value before continue.

      For example what if the object is not found ? You should continue to the next item or stop ?

      for item in spline_UD: rs_mat = doc.SearchObject ("S" + str (item) + " Gas") if rs_mat is None: # Because we don't have object to continue, we iterate to the next item. continue ...

      Cheers,
      Manuel

    • SwinnS

      Copy Material with Current State to Object

      Cinema 4D SDK
      • python • • Swinn
      5
      0
      Votes
      5
      Posts
      700
      Views

      SwinnS

      Got it. Thanks, again, zipit for you answer. 🙂

    • SwinnS

      delete Redshift node

      Cinema 4D SDK
      • • • Swinn
      3
      0
      Votes
      3
      Posts
      732
      Views

      SwinnS

      Cool! Thanks. 🙂

    • SwinnS

      Hide Layer in Layer Manager

      General Talk
      • • • Swinn
      3
      0
      Votes
      3
      Posts
      476
      Views

      SwinnS

      Got it. Thanks.

    • SwinnS

      Remove object from layer

      General Talk
      • • • Swinn
      4
      0
      Votes
      4
      Posts
      662
      Views

      SwinnS

      @PluginStudent said in Remove object from layer:

      op[c4d.ID_LAYER_LINK] = None

      op[c4d.ID_LAYER_LINK] = None c4d.EventAdd()

      did it! Thanks!
      As you can tell from my previous code, I am hacking my way through Python. If you saw the rest of it, you would probably have to sit down and maybe drink a Gatorade. Or something stronger. 🙂

    • SwinnS

      Python Tag not updating (The Sequel)

      Cinema 4D SDK
      • • • Swinn
      7
      0
      Votes
      7
      Posts
      740
      Views

      SwinnS

      Ah! Okay. Thanks. 🙂

    • SwinnS

      Tracer and User Date

      Cinema 4D SDK
      • • • Swinn
      4
      0
      Votes
      4
      Posts
      484
      Views

      SwinnS

      I figured out the problem. I needed to assign the UD in Main.

    • SwinnS

      Python Tag not updating

      Cinema 4D SDK
      • python • • Swinn
      9
      0
      Votes
      9
      Posts
      1.0k
      Views

      M

      make sure to pass a str value aka str(yourMessage)

      if this doesn't solve the issue open a new topic 🙂

      Cheers,
      Maxime

    • SwinnS

      Check User Data Link Field

      Cinema 4D SDK
      • • • Swinn
      3
      0
      Votes
      3
      Posts
      478
      Views

      SwinnS

      @Swinn is None did the trick. Thanks. 🙂

    • SwinnS

      Force refresh Xpresso

      Cinema 4D SDK
      • python r21 • • Swinn
      13
      0
      Votes
      13
      Posts
      2.4k
      Views

      SwinnS

      Yes, Thanks. 🙂

    • SwinnS

      Xpresso node changes to undefined, Python workaround?

      General Talk
      • • • Swinn
      2
      0
      Votes
      2
      Posts
      553
      Views

      SwinnS

      Problem solved. The Volume Mesher is to blame. Putting it in a Connect object and using that as the clone object did the trick.

    • SwinnS

      Update in UD link does not update object in Volume Builder Object List

      Cinema 4D SDK
      • python r20 • • Swinn
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      SwinnS

      @m_adam Cool. Thank-you for your time and patience. ☺

    • SwinnS

      Volume Builder does not return object

      Cinema 4D SDK
      • python r20 • • Swinn
      10
      0
      Votes
      10
      Posts
      2.3k
      Views

      M

      Hi @Swinn are you sure in your script you define in line 19/20

      settings[c4d.VOLUMETOMESHSETTINGS_ISO] = -5.51 settings[c4d.VOLUMETOMESHSETTINGS_ADAPTIVE] = 0.0

      With the same value, you got in your volume mesher object? The voxel range threshold can't be directly passed as an argument, but you can expand this parameter in the volume mesher and then you get the Use Absolute Value (ISO) check box, which let you choose an ISO value.

      Cheers,
      Maxime.

    • SwinnS

      Python SSL error

      Cinema 4D SDK
      • python r20 • • Swinn
      9
      0
      Votes
      9
      Posts
      1.8k
      Views

      orestiskonO

      @m_adam Thanks Maxime, I'll check that out.
      The customer was using R23.110