• Rendering render queue on program startup

    Moved Cinema 4D SDK
    6
    0 Votes
    6 Posts
    1k 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
    635 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
    855 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
    674 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
    947 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
    3k 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
    597 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
    525 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
    864 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
  • Best plugin type for background (thread) processing?

    Cinema 4D SDK r20 python
    16
    0 Votes
    16 Posts
    4k Views
    M
    Since this topic is older than a week I marked is as closed, but feel free to reopen it if you have further questions. Cheers, Maxime
  • Finding duplicate materials - Octane Render

    Cinema 4D SDK python r19
    17
    0 Votes
    17 Posts
    4k Views
    John_DoJ
    Hi, sorry for bringing back up this topic but the Compare() method still gives weird results in 2024.5.1. [image: 1730828935913-cinema_4d_d5fwj9o4rq.gif] Comparing a material duplicated with Ctrl-Drag returns sometimes True, sometimes False Comparing a material against a copy-pasted version (in the same scene) always returns False Comparing two identical materials both copy-pasted together in one-go in another scene always returns False, even if True was returned in the original scene. Please note that I'm using Corona Materials here but results are the same with the Standard Material.
  • Exporting Polygonized scene

    Cinema 4D SDK python r20
    8
    0 Votes
    8 Posts
    1k Views
    R
    You're welcome, Manuel. Actually, I usually prepare all the textures and mapping to be in UVW mapping, when texturing is required. But, mainly, what I need is exporting geometry that is animated.
  • Loading BaseBitmap from memory

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    664 Views
    P
    Thanks, I understand. I am now going to do it outside DrawMsg in parallel (thread) plugin. See my other post. https://developers.maxon.net/forum/topic/12310/best-plugin-type-for-background-thread-processing -Pim
  • Cinema 4D R21.2 Service Release availability

    Locked Cinema 4D SDK c++ python r21
    1
    0 Votes
    1 Posts
    434 Views
    No one has replied
  • Connect + Delete groups iteratively

    Cinema 4D SDK python r20
    5
    0 Votes
    5 Posts
    2k Views
    ManuelM
    hello, I'will consider this thread as solved tomorrow if you have nothing to add Cheers, Manuel