• How to deselect item in a fieldList

    Cinema 4D SDK r20 r21 python
    7
    0 Votes
    7 Posts
    1k Views
    S
    @m_magalhaes Hey! Added the code you provided and it works nicely, thanks so much! Cheers, Sandi
  • Align Group Parameters (Resource Files)

    Cinema 4D SDK r21 c++ sdk
    4
    1
    0 Votes
    4 Posts
    913 Views
    O
    Thanks @zipit, Managed to solve it thanks to you.
  • C++ SDK doc: SetPriority / SetPluginPriority mixup?

    Cinema 4D SDK sdk c++ r21
    2
    0 Votes
    2 Posts
    330 Views
    r_giganteR
    Hi Frank, thanks a lot for reporting the issue here. It will appear fixed in the next future. Best, Riccardo
  • Calling a Python plugin from C++ PluginStart()

    Cinema 4D SDK r21 c++ python
    4
    0 Votes
    4 Posts
    687 Views
    M
    If it's only a question of executing python, why not directly execute python from C++ using the python library? #include "c4d.h" #include "lib_py.h" PythonLibrary pylib; pylib.Execute("import c4d\nprint 'From Python:', c4d.GetC4DVersion()"_s); Note that in R20 the python.framework was released, and should be used for the future. The old python library (since R15) is still there and still works, but take care that in a future release it may disappear since everything that was possible and even more is now possible with the python.framework. For more information see Python Page. Cheers, Maxime.
  • Cloner with multi-instance

    Cinema 4D SDK c++ r21
    4
    0 Votes
    4 Posts
    960 Views
    ManuelM
    hello, without further addition on your part, this thread will be considered as solved tomorrow. Cheers, Manuel.
  • utils.ViewportSelect() Problem

    Cinema 4D SDK r19 r20 r21 python
    5
    0 Votes
    5 Posts
    1k Views
    gheyretG
    @zipit Thank you man ! I see how to fix it now!~~ Cheers harry
  • 0 Votes
    3 Posts
    750 Views
    N
    Hey zipit, thanks for the answer! Exactly what I needed! Best Regards, Florian
  • Add Child to description popup field.

    Cinema 4D SDK c++ r21
    5
    0 Votes
    5 Posts
    1k Views
    ManuelM
    hello, So yes, you have to react to MSG_DESCRIPTION_POPUP, you can see an example on the nodedata manual I thought first you wanted to create a popup menu. Cheers, Manuel
  • Message behavior of tabbed dialogs changed R19->R21?

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    530 Views
    CairynC
    That's ok, I have meanwhile refactored everything* into a MessageData plugin anyway so the plugin will work** even if the dialog is closed. *Everything except for timer stuff, which for some reason works differently for a dialog than for a message plugin. **There are some strange effects like hanging or crashing application on Close, when the dialog is in certain states. I will need to investigate whether this is an effect of the missing CoreMessage calls or something that happens now due to refactoring.
  • 0 Votes
    5 Posts
    646 Views
    M
    @fwilleke80 said in API: Bogus default value in SearchPluginMenuResource() declaration: IDS_EDITOR_PLUGINS Yes and also affect python.
  • STRINGENCODING -> StringEncodingRef ?

    Cinema 4D SDK classic api c++ r21
    3
    0 Votes
    3 Posts
    452 Views
    r_giganteR
    Hi Frank, I've just been confirmed that the function will be exposed in the future. Best, Riccardo
  • Iterating trough Field list?

    Cinema 4D SDK python r20 r21
    6
    0 Votes
    6 Posts
    2k Views
    ManuelM
    hello, I've forked the question to this thread cheers, Manuel
  • Dialog refresh works correct in R18... not in R21 ?

    Cinema 4D SDK python r21
    12
    0 Votes
    12 Posts
    2k Views
    M
    @m_magalhaes Epic, It works! Thank you very much Manuel!
  • R21 Console Bug?

    Cinema 4D SDK r21 python
    9
    0 Votes
    9 Posts
    1k Views
    r_giganteR
    @bentraje actually there's nothing to get fixed in the future, since it can't be reproduce with a clean installation. Please give it a try with a clean installation and if you're able to achieve the issue and provide us with the steps, we'll look into it. Thanks, Riccardo
  • 0 Votes
    4 Posts
    642 Views
    S
    Hello, there is no thing as mouse direction. The mouse has a position. The direction is the result of comparing two mouse positions. as @zipit stated, you can create a tool that implements MouseInput(). Within MouseInput() you can use ViewportSelect.PickObject() to check what object and what point the mouse is currently over (Using BaseView.SW()). You can store the previous mouse position and compare it to the current mouse position to calculate the direction. Unfortunately, there is an issue with the Python version of PickObject() (How do I find the z-depth with Python ViewportSelect.PickObject()?), so you might have to implement your idea as a C++ plugin. You find some code in the pickobject.cpp example. best wishes, Sebastian
  • How to get the JSON parser to work?

    Cinema 4D SDK r21 c++
    5
    0 Votes
    5 Posts
    909 Views
    r_giganteR
    Hi Frank, actually you can deal with by checking the type of the stored value and read it as a maxon::DataDictionary . .. ... if (value.GetType() == maxon::GetDataType<maxon::DataDictionary>()) { nestedDataDict = value.Get<maxon::DataDictionary>() iferr_return; } ... .. , Hope this helps. Riccardo
  • Detect if inside the Material Editor

    Cinema 4D SDK python r19 r20 r21
    2
    0 Votes
    2 Posts
    334 Views
    ferdinandF
    Hi, check RENDERFLAGS (Link). You will have listen in NodeData.Message() for them. I never did use this, but checking for RENDERFLAGS_PREVIEWRENDER sounds promising. Cheers zipit
  • Highlight Hover on GeDialog Buttons?

    Cinema 4D SDK python r21
    4
    0 Votes
    4 Posts
    898 Views
    B
    @zipit and @m_magalhaes Thanks for the confirmation. Will close this thread for now. Will just ask separate question on GeUserAreas.
  • C++ Debugging Setup

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    hello, We need to ask if you are compiling the SDK, your own project, etc. Different question, you should open a different thread It will help other people to find the thread. Cheers, Manuel
  • Dynamically Import All Python Files

    General Talk r21 python
    5
    0 Votes
    5 Posts
    2k Views
    B
    @m_adam Thanks for the additional insight and the related links. Appreciate it a lot.