Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • B

      Vertical View of the Timeline

      r21 python • • bentraje
      3
      0
      Votes
      3
      Posts
      453
      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!

    • S

      How to deselect item in a fieldList

      r20 r21 python • • sandidolsak
      7
      0
      Votes
      7
      Posts
      1.1k
      Views

      S

      @m_magalhaes Hey!

      Added the code you provided and it works nicely, thanks so much!

      Cheers,

      Sandi

    • fwilleke80F

      How to get the JSON parser to work?

      r21 c++ • • fwilleke80
      5
      0
      Votes
      5
      Posts
      876
      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

    • G

      Update timeline markers on user data slider input.

      python r20 r21 • • gsmetzer
      4
      0
      Votes
      4
      Posts
      829
      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.

    • fwilleke80F

      Calling a Python plugin from C++ PluginStart()

      r21 c++ python • • fwilleke80
      4
      0
      Votes
      4
      Posts
      643
      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.

    • K

      DIALOG CONTAINS DESC DATA

      • • kng_ito
      9
      0
      Votes
      9
      Posts
      927
      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.

    • WTools3DW

      Plugin porting to R20(R21) MacOS problem.

      r20 c++ r21 • • WTools3D
      6
      0
      Votes
      6
      Posts
      1.2k
      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

    • ?

      This topic is deleted!

      • • A Former User
      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • J

      GvNode.OperatorSetData() INVALID IN R21 WHEN WORK ON POSEMORPH TAG' POSE STRENGTH

      r21 • • Jmelon
      3
      0
      Votes
      3
      Posts
      570
      Views

      J

      @m_magalhaes thanks, looking forward to the next update 🙂

    • A

      AddUndo() for MergeDocument() ?

      • • arsen
      16
      0
      Votes
      16
      Posts
      2.2k
      Views

      ManuelM

      hi,

      nice, feel free to share your solution and mark this thread as solved.

      Cheers,
      Manuel

    • B

      Keyframe Selection Code from Cineversity

      r21 python • • bentraje
      3
      0
      Votes
      3
      Posts
      398
      Views

      B

      @zipit

      Thanks for the clarification.
      Yea, I guess so but just learning as much as I can.

      Thanks again!

    • CairynC

      Any reason SceneHook is still not supported by Python?

      sdk r21 python • • Cairyn
      3
      0
      Votes
      3
      Posts
      513
      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.)

    • mfersaouiM

      Cloth Surface object ID name

      sdk c++ • • mfersaoui
      4
      0
      Votes
      4
      Posts
      618
      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

    • P

      Cloner with multi-instance

      c++ r21 • • peterakos
      4
      0
      Votes
      4
      Posts
      753
      Views

      ManuelM

      hello,

      without further addition on your part, this thread will be considered as solved tomorrow.

      Cheers,
      Manuel.

    • G

      Set Knot Value of RangeData, bug?

      r19 python • • gsmetzer
      3
      0
      Votes
      3
      Posts
      579
      Views

      G

      Thank You,
      How embarrassing I forgot to write back to the UserData. (I shouldn't code late at night) Solved.

    • D

      Is CalculateVisiblePoints() useable?

      c++ r20 sdk • • d_schmidt
      3
      0
      Votes
      3
      Posts
      431
      Views

      D

      Thank you, Riccardo. That was exactly what I was doing wrong.

      Dan

    • fwilleke80F

      Python plugin priority

      python • • fwilleke80
      3
      0
      Votes
      3
      Posts
      437
      Views

      fwilleke80F

      OK, thanks!

    • P

      IsolateObjects question

      r20 python • • pim
      7
      0
      Votes
      7
      Posts
      773
      Views

      P

      Aha, thanks.

    • A

      Custom Object Icon in R21 python

      python • • affa
      2
      0
      Votes
      2
      Posts
      486
      Views

      M

      Hi @affa

      May I ask you in which context you are?

      Can you share your code?
      Did you take a look to the py-custom_icon.pyp plugin example.

      Cheers,
      Maxime.

    • P

      Storing a part of the hierarchy

      r20 c++ • • pim
      20
      0
      Votes
      20
      Posts
      2.0k
      Views

      P

      Thanks for all the support.
      I will use all the knowledge gained and start testing.
      I am sure, I will be back with more questions.

      -Pim