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
    • gheyretG

      How to get the object newly added in current scene?

      s26 2023 python • • gheyret
      9
      0
      Votes
      9
      Posts
      1.2k
      Views

      gheyretG

      Hi @ferdinand , I get it ! Thanks again to your reply!

    • V

      Notify CommandData Plugin from a PreferenceData Plugin

      2023 python • • ViVace_
      4
      0
      Votes
      4
      Posts
      714
      Views

      ManuelM

      hi,

      well, if it works.

      Cheers,
      Manuel

    • ?

      Ability to set DLG_TYPE_ASYNC Width & Height

      • • A Former User
      8
      1
      Votes
      8
      Posts
      1.0k
      Views

      DunhouD

      @m_adam
      Thanks for you reply , and there is nothing worry about the time, you are much busier than me😊

      I already try the defaultX and nothing changed, the dialog is always bigger than I set , it seems the dialog is considering teh hiden element size or something , the code is bit long for the forum ( maybe we should add a folding option to the code block in the forum ), and I sent an copy to ferdinand , and newest version has nothing changed for the UI part, Is that convenient for you to get a copy from ferdinand or post your email I can send you emails to,

      Cheers~

    • J

      Dialog Menu

      python • • Joel
      6
      0
      Votes
      6
      Posts
      1.3k
      Views

      J

      Creating an instance for each subdialog solved the issue thank you so much.

    • yesbirdY

      Drop-down list in tag for C++ plugin

      c++ r19 • • yesbird
      7
      0
      Votes
      7
      Posts
      1.3k
      Views

      yesbirdY

      Hello, @ferdinand

      Thanks, I will take it into account.

      All the best,
      ...
      YB

    • ThomasBT

      Object Plugin doesn´t render with Physical Renderer

      2023 windows python r23 • • ThomasB
      11
      0
      Votes
      11
      Posts
      1.6k
      Views

      ThomasBT

      @manuel
      Thank you very much!

    • ThomasBT

      Dumb question: Can an Object Plugin inherit from existing modules

      2023 python r23 • • ThomasB
      2
      0
      Votes
      2
      Posts
      390
      Views

      ManuelM

      hi,

      well you cannot inherit from the Hair Object as you could from a class.

      What you can do is to load the description of the hair object or include it in your description, create the hair object internally and link your description parameters to the internal hair object. Probably add your own parameter in your description. Than inside GVO you could generate the hair object with those parameter and return the result of it.

      While this seems to be possible, there are probably a lot of issue you are going to face, be ready ^^

      Cheers,
      Manuel

    • ymoonY

      C++ SDK activeobject.cpp <-- highlight text on select item

      c++ 2023 • • ymoon
      4
      0
      Votes
      4
      Posts
      598
      Views

      ManuelM

      Hi,

      there is this thread where Maxime is talking about drag and drop.

      If you have any question about it, please open a new thread. We like to keep question separated.

      Cheers,
      Manuel

    • B

      Unsolo a Node?

      python 2023 • • bentraje
      5
      0
      Votes
      5
      Posts
      817
      Views

      B

      @m_adam

      Thanks. Works as expected!

    • A

      Create a RS Standard Material with a Texture node connected to the Color and also wired up to a color splitter that it is connected to the opacity.

      • • adrianwul
      4
      0
      Votes
      4
      Posts
      839
      Views

      A

      @manuel Wow! Manuel thank you so much I'm new in code development so that's why its fo easy for me to have those kind of mistakes. Thank you so much for your support.

    • P

      Setting Material Preview for 1 material

      2023 python • • pim
      3
      0
      Votes
      3
      Posts
      522
      Views

      P

      Thank you.

    • C4DSC

      Removing IsolateObjects document

      r23 r25 c++ 2023 r20 • • C4DS
      3
      0
      Votes
      3
      Posts
      648
      Views

      ManuelM

      hi,

      yes, KillDocument is not necessary in that case.

      Cheers,
      Manuel

    • CJtheTigerC

      Error when removing bound joints

      c++ 2023 • • CJtheTiger
      4
      0
      Votes
      4
      Posts
      748
      Views

      CJtheTigerC

      Thank you very much Maxime, both for the solution and the explanation. The code works perfectly. Also thanks for fixing this bug. Out of curiosity: Was this causing issues anywhere else?

      For completion sake: I do need to add a directChild->Free() after directChild->Remove(), correct?

      Still gonna mark this as answered as the core issue has been solved with flying colors. Thanks again!

    • ThomasBT

      Object Plugin : Sweep with 2 Splines - After MakeEditable just 1 spline

      2023 windows python r23 • • ThomasB
      4
      0
      Votes
      4
      Posts
      875
      Views

      ThomasBT

      @ferdinand
      Yes you are right, in relation to this the self.spline etc is unnecessary that could also be a normal local variable. Is correct.
      But basically if I load a profile spline in my init method, for example, I can already save it in such a variable. I need to be able to access it from anywhere in the class.
      But here it is totally superfluous....sorry

    • C4DSC

      How to detect CTRL being pressed in a GeDialog

      r23 r25 2023 c++ • • C4DS
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      C4DSC

      Thanks @m_adam
      I can confirm that the following does work with R20, R23 and 2023

      Int32 MyDialog::Message(const BaseContainer& msg, BaseContainer& result) { BaseContainer keyChannels; if (GetInputState(BFM_INPUT_KEYBOARD, QCTRL, keyChannels)) { Bool ctrlModifier = (keyChannels.GetInt32(BFM_INPUT_QUALIFIER) & QCTRL) != 0;
    • ThomasBT

      Object-Plugin - Message() method POSTSETPARAMETER c4d.CallCommand(12147) - Freezing

      windows python r23 • • ThomasB
      13
      0
      Votes
      13
      Posts
      1.9k
      Views

      ferdinandF

      Hey @thomasb,

      no worries, don't be too concerned about it. And you should not be ashamed, that was certainly not what I wanted to convey. "Every person his or her book", the second so called law of library science, is something I truly believe in. Everyone has valid information needs and we are trying to help users on their individual journey. You should not feel discouraged, we are and were all once in your place.

      But at the same time, I sometimes have to regulate a bit forum conduct as we, the Maxon SDK group, and other users are human too. And people tend to get confused, when they are being hit with a stream-of-conscious like threads were a user comments diary-style-like on his or her development state. It is not that I would not understand people are doing that. When one is in that situation, one is overwhelmed by the possible routes one can take, the amount of information to traverse. And verbalizing that does indeed help. But for someone who tries to help you or for people who later search for similar information, this "stream-of-conscious/diary" is then an obstacle rather than a help.

      So, sometimes I try to regulate both interests a bit. But as I said, please do not feel discouraged.

      Cheers,
      Ferdinand

    • yesbirdY

      Calling system command on animation frame change

      c++ python • • yesbird
      6
      0
      Votes
      6
      Posts
      1.0k
      Views

      yesbirdY

      Hi, Manuel.

      Thank you for description of both approaches, now I can compare them and choose the best.

      Regards,
      Sergey (Yesbird).

    • DunhouD

      Can I bypass calling the material manager when create new materials?

      2023 python windows • • Dunhou
      6
      0
      Votes
      6
      Posts
      623
      Views

      ferdinandF

      Hello @dunhou,

      ah that was the critical bit of information for me, that is you plugin at work there 😄 Well, as always without code it is hard to say what is going wrong there.

      the main code about this function is like :

      SetBit() doc.InsertMaterial() c4d.CallCommand(12252) # Render Materials doc.GetActiveMaterial() textag.SetMaterial() and some undo and call the Node Editor for certain renderer or rules for the function ...

      Out of this selection, I would put my money on CallCommand and undo handling. Setting bits and calling the mentioned methods are far less likely candidates. But that is pure guess work.

      actually, I checked the c4d.IsCommandChecked(id)

      The first thing I would do, is search for the command ID of the Material Manager (12159) in your code and add a print statement to each place where either this command ID is invoked with CallCommand or places where an ID determined at runtime is invoked (silly example : CallCommand(random.randint(1000, 1000000))) Then run your plugin again. When you see 12159 being printed when the undesired behaviour happens, you know it must be your plugin which misfiring. When not, it might be a bug in Cinama 4D or one of its APIs.

      Cheers,
      Ferdinand

    • V

      List all Redshift node types that can be added in Node Editor?

      python 2023 • • vertexx
      3
      0
      Votes
      3
      Posts
      784
      Views

      V

      Great, this is exactly what I needed. Thanks @ferdinand !

    • D

      select edge points with python

      • • datamilch
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      D

      wohaa, thank you so much for your time an effort!

      i will have a good look at it.

      alos great insight into what the GetNgonEdgesCompact numbers mean. this was a bit mysterious in the sdk, or at least hard to decipher what the description meant.