• How to use STRINGTABLE with a Python Command Plugin

    Cinema 4D SDK sdk python
    7
    0 Votes
    7 Posts
    818 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
    894 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
    881 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
    503 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
    993 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
    478 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
    727 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
    3k 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
    3k 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
    894 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
    564 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
    359 Views
    No one has replied
  • Connect + Delete groups iteratively

    Cinema 4D SDK python r20
    5
    0 Votes
    5 Posts
    1k Views
    ManuelM
    hello, I'will consider this thread as solved tomorrow if you have nothing to add Cheers, Manuel
  • 0 Votes
    5 Posts
    851 Views
    P
    Thank you so much! This helps me a lot with the understanding of what was going on. I am digging back into my work on this today and will follow up with your advice.
  • Toggle knife cut planes

    Moved Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    673 Views
    ManuelM
    i forgot to mention: For your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here. Q&A New Functionality. How to Post Questions especially the tagging part. I've added the tags and marked this thread as a question so when you considered it as solved, please change the state Cheers, Manuel
  • Bug with GetLink/SetLink & Hyperfile

    Cinema 4D SDK sdk python
    3
    1 Votes
    3 Posts
    404 Views
    ?
    My apologies: I didn't understand how BaseLink worked and this clarified things. Thank you!
  • SetBit vs. SetAllBits etc... flags documentation?

    Cinema 4D SDK r21 python
    3
    0 Votes
    3 Posts
    407 Views
    CairynC
    @m_adam Thanks for the info! I knew I was still missing a few flags