• List of all Cinema 4D IDs?

    Cinema 4D SDK r21 sdk python
    5
    0 Votes
    5 Posts
    731 Views
    ?
    @m_adam Thank you for the clarification and the code example, Maxime!
  • 0 Votes
    6 Posts
    1k Views
    mfersaouiM
    @zipit Hi, Thank you so much.
  • Force refresh Xpresso

    Moved Cinema 4D SDK python r21
    13
    1
    0 Votes
    13 Posts
    3k Views
    SwinnS
    Yes, Thanks.
  • 0 Votes
    4 Posts
    785 Views
    ManuelM
    hello, I will consider this thread as solved without new information from you Cheers, Manuel
  • Object Links in GeDialog

    Cinema 4D SDK sdk python
    1
    1
    0 Votes
    1 Posts
    184 Views
    No one has replied
  • Making Houdini Engine visible to C4D via Python

    Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    1k Views
    jcooperJ
    @r_gigante Perfect! Worked like a charm. Thank you.
  • Rendering render queue on program startup

    Moved Cinema 4D SDK
    6
    0 Votes
    6 Posts
    993 Views
    Z
    Hi @karol_w! This is exactly what I am looking for, because Octane keeps crashing on me. Unfortunately, I am not very good with coding. Is there any chance you would share your plug-in? Or point me towards where to find resources to build that myself? Thank you very much!
  • Listing All Renderers

    Cinema 4D SDK python
    5
    1
    0 Votes
    5 Posts
    579 Views
    ?
    @m_adam You are a genius - I am in awe! Thank you everyone for the help!
  • NBIT xHIDE visibility flags - THIDE deprecated?

    Cinema 4D SDK c++ python r21
    7
    0 Votes
    7 Posts
    767 Views
    CairynC
    Thanks, it's good to know that there are internal functionalities actually using these flags!
  • GeUserArea Tool Tips

    Cinema 4D SDK python
    5
    1
    0 Votes
    5 Posts
    642 Views
    ?
    @m_adam & @PluginStudent Thank you both! This was exactly what I needed. This forum is so so helpful.
  • How to use STRINGTABLE with a Python Command Plugin

    Cinema 4D SDK sdk python
    7
    0 Votes
    7 Posts
    877 Views
    P
    I don't think there are any official "tools". But the docs describe how to handle unicode (Dialog Layout The encoding is 7-bit ASCII with other characters encoded as \uHHHH. For example 'Natürlich' is written 'Nat\u00fcrlich'. Byte-order marks are not used.
  • 0 Votes
    9 Posts
    2k Views
    M
    @m_magalhaes This morning: uff more learning and work. This Afternoon lets try this code ... mind blown ... thank you ! I'll mark this as solved hence I think ist a good way to close a thread with a working prototype for others to learn. Thank You again, @zipit & @m_magalhaes mogh
  • Recalculate Plugin Object Cache

    Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    1k Views
    mfersaouiM
    Hi @r_gigante, @zipit, I'm creating something like the following code. I tried to use the GetAndCheckHierarchyClone, this works but the cloner object became to slow to calculate. For this reason I used the following solution: def __init__(self): pass #self.SetOptimizeCache(True) def GetVirtualObjects(self, op, hh): instance = op.GetDown() if instance is None: return c4d.BaseObject(c4d.Onull) dirty = op.CheckCache(hh) or op.IsDirty(c4d.DIRTY_DATA) instance_dirty = instance.IsDirty(c4d.DIRTY_DATA) dirty |= instance_dirty if not dirty: return op.GetCache(hh) cloner = c4d.BaseObject(c4d.Onull) count = 3 n = 0 while n < count: instance.GetCache().GetClone().InsertUnder(cloner) n += 1 cloner.Message(c4d.MSG_UPDATE) return cloner So, by just deactivating the SetOptimizeCache and cloning only the cache of the instance object the cloner object calculate is become to fast. The unique problem now is the cloner object is return the cache of previous modification on the instance object. This is perceptible only with bool parameters. Example: When I check a bool parameter of the instance object, the cloner return the result of the previous state of the bool parameter. but if I mouseover the cloner in the Viewport or I select it object manager this update the cloner object. Thanks
  • 0 Votes
    4 Posts
    1k Views
    bacaB
    Hi Maxon team, Just want to bump up the issue, which is still here under the Cinema4D 2024.2
  • Setting the width of a treeview column

    Cinema 4D SDK r20 python
    3
    1
    0 Votes
    3 Posts
    557 Views
    ManuelM
    hello, that's because you set the width of your columns to more that what it show. But you can simply passed that argument when you add your customGUI settings.SetBool(c4d.TREEVIEW_RESIZE_HEADER, False) In the c++ doc you have that page and in python this one Cheers, Manuel
  • draw line into 3d Space with two mouse clicks

    Moved Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    hi, it looks correct. Of course be sure to retrieve a unique id here, from the top bar. (the icon plugin ID) Feel free to ask questions. Cheers, Manuel
  • Set Keyframe Color?

    Cinema 4D SDK r21 python
    3
    0 Votes
    3 Posts
    499 Views
    B
    Thanks for the confirmation
  • How do I access Redshift AOV settings from Python?

    Cinema 4D SDK
    3
    1
    0 Votes
    3 Posts
    2k Views
    lasselauchL
    Wow, thanks for the example, @r_gigante. Was it always possible to import a redshift module? Or is there any info from which version on (C4D / Redshift) this is possible!? Thanks, Lasse
  • Vertex map python setup

    Moved General Talk
    3
    0 Votes
    3 Posts
    806 Views
    CairynC
    Just to point out, I already answered & posted a full sample scene in this thread: https://www.c4dcafe.com/ipb/forums/topic/109504-python-vertex-map/ plus a detailed explanation on how vertex map calculation works in a free post on my Patreon: https://www.patreon.com/posts/script-club-1-07-34384586 (Just so we don't get work duplicated.)
  • Get edges segments in a polygon object

    Cinema 4D SDK python r21
    8
    0 Votes
    8 Posts
    2k Views
    FlavioDinizF
    Awesome @m_magalhaes, works perfect now! Thank very much! Flavio