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. Swinn
    3. Topics
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 60
    • Groups 0

    Topics

    • SwinnS

      update User Data with Preset info

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python
      5
      0 Votes
      5 Posts
      923 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

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      17
      0 Votes
      17 Posts
      3k 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

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python
      5
      0 Votes
      5 Posts
      863 Views
      SwinnS
      Got it. Thanks, again, zipit for you answer.
    • SwinnS

      delete Redshift node

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      3
      1
      0 Votes
      3 Posts
      858 Views
      SwinnS
      Cool! Thanks.
    • SwinnS

      Hide Layer in Layer Manager

      Watching Ignoring Scheduled Pinned Locked Moved General Talk
      3
      0 Votes
      3 Posts
      580 Views
      SwinnS
      Got it. Thanks.
    • SwinnS

      Remove object from layer

      Watching Ignoring Scheduled Pinned Locked Moved General Talk
      4
      0 Votes
      4 Posts
      842 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)

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      7
      0 Votes
      7 Posts
      951 Views
      SwinnS
      Ah! Okay. Thanks.
    • SwinnS

      Tracer and User Date

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      4
      0 Votes
      4 Posts
      610 Views
      SwinnS
      I figured out the problem. I needed to assign the UD in Main.
    • SwinnS

      Python Tag not updating

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python
      9
      0 Votes
      9 Posts
      1k 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

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      3
      0 Votes
      3 Posts
      619 Views
      SwinnS
      @Swinn is None did the trick. Thanks.
    • SwinnS

      Force refresh Xpresso

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r21
      13
      1
      0 Votes
      13 Posts
      3k Views
      SwinnS
      Yes, Thanks.
    • SwinnS

      Xpresso node changes to undefined, Python workaround?

      Watching Ignoring Scheduled Pinned Locked Moved General Talk
      2
      0 Votes
      2 Posts
      667 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

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r20
      5
      0 Votes
      5 Posts
      1k Views
      SwinnS
      @m_adam Cool. Thank-you for your time and patience.
    • SwinnS

      Volume Builder does not return object

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r20
      10
      0 Votes
      10 Posts
      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

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK python r20
      9
      0 Votes
      9 Posts
      2k Views
      orestiskonO
      @m_adam Thanks Maxime, I'll check that out. The customer was using R23.110