• Python plugin priority

    python
    3
    0 Votes
    3 Posts
    462 Views
    fwilleke80F
    OK, thanks!
  • Is CalculateVisiblePoints() useable?

    c++ r20 sdk
    3
    0 Votes
    3 Posts
    457 Views
    D
    Thank you, Riccardo. That was exactly what I was doing wrong. Dan
  • Set Knot Value of RangeData, bug?

    Moved r19 python
    3
    0 Votes
    3 Posts
    677 Views
    G
    Thank You, How embarrassing I forgot to write back to the UserData. (I shouldn't code late at night) Solved.
  • Cloner with multi-instance

    c++ r21
    4
    0 Votes
    4 Posts
    898 Views
    ManuelM
    hello, without further addition on your part, this thread will be considered as solved tomorrow. Cheers, Manuel.
  • Cloth Surface object ID name

    sdk c++
    4
    0 Votes
    4 Posts
    641 Views
    ManuelM
    hello, up to version R20 you can use GeGetVersionType but this have been removed with the version R21 (we only have one package now) With the version R21 follow you have several functions see this page to check the version you can check for API_VERSION #if API_VERSION > 20999 ApplicationOutput("this is a message"); #else GePrint("this is a message"); #endif Cheers Manuel
  • Any reason SceneHook is still not supported by Python?

    sdk r21 python
    3
    0 Votes
    3 Posts
    538 Views
    CairynC
    @m_adam Thanks, yes, you're right, a timer may be my best choice here to avoid too much load on the system. Checking the project list every 3 seconds or so should suffice for the usecases. And since I'm in a GeDialog, the timer function is easy to implement. (I just have to take care that within the 3 seconds, the state of the dialog may be inconsistent with the actual system state.)
  • Keyframe Selection Code from Cineversity

    r21 python
    3
    0 Votes
    3 Posts
    419 Views
    B
    @zipit Thanks for the clarification. Yea, I guess so but just learning as much as I can. Thanks again!
  • AddUndo() for MergeDocument() ?

    16
    0 Votes
    16 Posts
    2k Views
    ManuelM
    hi, nice, feel free to share your solution and mark this thread as solved. Cheers, Manuel
  • 0 Votes
    3 Posts
    637 Views
    J
    @m_magalhaes thanks, looking forward to the next update
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Plugin porting to R20(R21) MacOS problem.

    r20 c++ r21
    6
    0 Votes
    6 Posts
    1k Views
    WTools3DW
    So my problem was actually not related to OSX but to compatibility issues between minor releases. Thanks to your replies I sorted it out. And I finally understand your versioning concept. Thank you Manuel, good job! Regards, Viktor Veličko WTools3D s.r.o. www.lwcad.com
  • DIALOG CONTAINS DESC DATA

    9
    1
    0 Votes
    9 Posts
    988 Views
    M
    You are right @zipit is not a ToolData but a DescriptionToolData. Note that in Python you can register a SculptBrushToolData which derive from DescriptionToolData. But for me, my previous questions are still relevant, what's your final need, and why do you strickly need your dialog to be constructed this way? Cheers, Maxime.
  • Calling a Python plugin from C++ PluginStart()

    r21 c++ python
    4
    0 Votes
    4 Posts
    682 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.
  • Update timeline markers on user data slider input.

    Moved python r20 r21
    4
    0 Votes
    4 Posts
    950 Views
    G
    Thank You @m_magalhaes and @zipit Both your suggestions were very helpful. The controller works very well @m_magalhaes I just needed to convert my user data input to BaseTime and it works perfectly. I was able to solve the updating issue to work how I want. I only needed to add: c4d.GeSyncMessage(c4d.EVMSG_TIMECHANGED) Now my timeline markers update nicely as I change values. This topic can be marked solved.
  • How to get the JSON parser to work?

    r21 c++
    5
    0 Votes
    5 Posts
    905 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
  • How to deselect item in a fieldList

    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
  • Vertical View of the Timeline

    r21 python
    3
    0 Votes
    3 Posts
    477 Views
    B
    RE: The only possible solution for you would be to develop your own timeline. Okay. Not going that route. Hahaha. Thanks for the confirmation!
  • How to enable object X-Ray option - C++

    c++ sdk
    19
    0 Votes
    19 Posts
    3k Views
    r_giganteR
    Hi @mfersaoui, I thought you were referring to objects pinned under the generator and not children in the cache. In this case checking that the cache is valid before attempting to access any of its methods is mandatory. Last but not least, I think we're running out of options here, cause even attempting to use SpecialEventAdd() / MessageData::CoreMessage() doesn't help too much and leads on some cases to unpredictable results. Best, Riccardo
  • One Liner Console?

    r21 python
    4
    0 Votes
    4 Posts
    563 Views
    M
    I can only confirm it's not possible in Cinema 4D. The thing that matches the more is the Command Line windows. Cheers, Maxime.
  • BaseLink from maxon::Uuid

    r21 c++
    3
    0 Votes
    3 Posts
    750 Views
    A
    ok thanks for the info @m_adam.