• Decoupling source from SDK project

    Cinema 4D SDK
    7
    0 Votes
    7 Posts
    1k Views
    F
    @kbar said in Decoupling source from SDK project: Since Maxon also updates the ProjectTool when a new version of C4D comes out and it may have new flags or optimazations and changes to the project structure for XCode and Visual Studio. From what I can tell it's pretty stable, also I don't mind what someone else thinks my compiler optimisation flags should be. Maintaining your own CMake version going forward for R20, R21, S22, RXX etc... would be a massive pain and just slow you down. Not as painful as you think it might be, also not as slow. Whatever floats your boat.
  • 0 Votes
    5 Posts
    795 Views
    AwesuusA
    Thank you so much, this works like a charm!!!
  • Best way to update objects after preference change?

    Cinema 4D SDK c++ r20 r21 s22
    7
    0 Votes
    7 Posts
    1k Views
    fwilleke80F
    Oh wait, I think I found a way. In case anybody else wants to know, here it is... In the PrefsDialogObject: Bool MyPrefsDialog::SetDParameter(GeListNode *node, const DescID &id,const GeData &t_data,DESCFLAGS_SET &flags) { BaseContainer* bc = MyPlugin::GetPreferences(); if (!bc) SUPER::SetDParameter(node, id, t_data, flags); switch (id[0].id) { // If PREFS_MYPLUGIN_SOMEVALUE was changed, store value and notify plugin objects in all open documents. case PREFS_MYPLUGIN_SOMEVALUE: bc->SetInt32(PREFS_MYPLUGIN_SOMEVALUE, t_data.GetInt32()); flags |= DESCFLAGS_SET::PARAM_SET; // Iterate open documents for (BaseDocument *doc = GetFirstDocument(); doc; doc = doc->GetNext()) { // Send broadcast message to each document, use unique ID doc->MultiMessage(MULTIMSG_ROUTE::BROADCAST, MyPlugin::UNIQUE_ID_PREFS, nullptr); } GeUpdateUI(); return true; } return SUPER::SetDParameter(node, id, t_data, flags); } And then, in the plugin object: Bool MyPluginObject::Message(GeListNode *node, Int32 type, void *data) { if (type == MyPlugin::UNIQUE_ID_PREFS) { GePrint("Aha! My prefs have changed!"_s); return true; } return SUPER::Message(node, type, data); }
  • C4D in VirtualBox... no viewport displayed

    Cinema 4D SDK windows r21 s22
    3
    0 Votes
    3 Posts
    560 Views
    fwilleke80F
    I guess VirtualBox is just not a good choice then. Damn. But thanks for the answer! Cheers, Frank
  • 0 Votes
    3 Posts
    519 Views
    ManuelM
    hi, Since R20, arguments have been added, and the problem is coming from the last one def HeaderClick(self, root, userdata, lColID, lChannel, bDblClk, mouseX, mouseY, ua): I've opened a bug report Cheers, Manuel
  • Mirror without duplicate using `MCOMMAND_MIRROR`

    Cinema 4D SDK s22 python
    12
    0 Votes
    12 Posts
    2k Views
    ManuelM
    Hi, This have been fixe and will be available in a futur update. Cheers, Manuel
  • 0 Votes
    7 Posts
    1k Views
    ManuelM
    @ivodow said in Thinking Particles allocation failure in new document: So, would ExecutePasses() with the BUILDFLAGS_EXPORT flag set be typically called just before exporting to alembic (to be on the safe side)? the exporter is calling ExecutePasses several times, you don't really need it. And because the scene can be sometimes quiet complexe, you have to call it several times in a row. for example, in the alembic exporter : [image: 1597218183449-68d39647-ef56-430b-ae1a-2189e1b83617-image.png] Cheers, Manuel
  • Python, tool attributes and hotkeys

    Cinema 4D SDK s22 python sdk
    8
    0 Votes
    8 Posts
    2k Views
    John_DoJ
    @m_magalhaes Yes please, and sorry for the delay :3
  • Alembic Export Options Not Working

    Cinema 4D SDK python s22
    7
    0 Votes
    7 Posts
    2k Views
    BigRoyB
    Just want to confirm here that I'm facing this same issue - only setting the negative state first and then the positive state after seems to make this work. So, thanks for the workaround. Here's the reported bug on our pipeline: https://github.com/ynput/ayon-cinema4d/issues/6 And this is what fixed it: https://github.com/ynput/ayon-cinema4d/pull/8 Looking at 'what' fixes it this most definitely sounds like a bug. (I tested in Cinema4D 2023.2.2 on Windows 10)
  • Max value of an EditNumberArrows in TagData

    Cinema 4D SDK s22 python
    3
    0 Votes
    3 Posts
    356 Views
    ?
    @m_adam Thanks, Maxime!
  • Mirroring with Matching or Different Axes

    Cinema 4D SDK s22 python
    26
    0 Votes
    26 Posts
    17k Views
    kbarK
    @zipit I also want to say that the amount of time you contribute here to help out developers is very generous of you. You are doing an amazing job. I would hope that Maxon would actually pay you some retainer fee for your time or at least provide you with a free subscription for all the help you have given everyone here.
  • Creating Commands for Shortcuts

    Cinema 4D SDK s22 python
    4
    1
    0 Votes
    4 Posts
    413 Views
    ?
    @m_adam Thank you, again, Maxime
  • Drawing Multiple Lines from TagPlugin

    Cinema 4D SDK s22 python sdk
    3
    1
    0 Votes
    3 Posts
    329 Views
    ?
    @zipit Hahahahaha! Thank you! I see my lines now. Who hoo!
  • BaseDraw in TagDataPlugin

    Cinema 4D SDK s22 python sdk
    3
    0 Votes
    3 Posts
    372 Views
    ?
    @m_adam My apologies for not being clearer. I thought there was something wrong with how I was doing the Draw function. The issue was the TAG_IMPLEMENTS_DRAW_FUNCTION flag was missing. Thank you very much!
  • Render filtered Hardware Preview

    Cinema 4D SDK s22 classic api python
    10
    0 Votes
    10 Posts
    2k Views
    a_blockA
    Thanks for validating my assumptions. Much appreciated. Yes, I already have multiple code branches and for S22 my workaround looks as described. Because it doesn't hurt to insert the RenderData in this case, it doesn't even need multiple branches. Thanks for looking into it, Maxime. Is this going to be fixed in a future version?
  • 0 Votes
    3 Posts
    441 Views
    ?
    @m_magalhaes Remap did the trick! Thanks for the help, Manuel
  • How is NBIT_CKEY_ACTIVE used?

    Cinema 4D SDK python s22 sdk
    3
    0 Votes
    3 Posts
    258 Views
    ?
    @r_gigante Ahhhhhhhh, okay, I get it now. Thank you
  • Sizing Plugin Dialogs

    Cinema 4D SDK python s22 sdk
    9
    1
    1 Votes
    9 Posts
    1k Views
    ferdinandF
    Hi @blastframe, without further questions or feedback, by Monday we will consider this thread as solved and flag it accordingly. Cheers, Ferdinand