The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.
  • c4dpy.exe and VS Code on Windows?

    python windows r21
    9
    1 Votes
    9 Posts
    3k Views
    M
    @rossc1 Thanks for the inputs, I will for sure add a note in the documentation regarding this issue. Just as a follow-up from the current status, it is confirmed and while there is a behavior change in our side due to the new licensing mechanism, the issue also comes from Visual Studio Code, reading directly raw string to detect a valid interpreter, and fail if something is not formated as it wants. However, we received the official confirmation from Visual Studio Code that they will not change their implementation, and not support custom interpreters. But we are still on it. Regarding your needs for an IDE, you can use Pycharm, the only pre-requires is to rename c4dpy to python, unfortunately, we can't officially recommend doing such things since newer OS (Catalina) prevent user changing content of an application package but @dskeith explained everything cleary in How to use c4dpy for Cinema4D R20 SP1. Cheers, Maxime.
  • SetData() with FindCustomGui / CUSTOMGUI_BITMAPBUTTON

    4
    0 Votes
    4 Posts
    761 Views
    ManuelM
    @lasselauch said in SetData() with FindCustomGui / CUSTOMGUI_BITMAPBUTTON: there's no way to flush a single Element and insert at that position, right? It has to be a group For what I know, correct. Cheers, Manuel
  • Example of ObjectData in Maxon API only?

    c++ r21
    2
    0 Votes
    2 Posts
    593 Views
    S
    Hello, this is not possible. ObjectData is a class of the "classic" API. The Maxon API has no equivalent counterpart. You get an overview over plugin types here: Plugin Types. best wishes, Sebastian
  • A strange error

    3
    0 Votes
    3 Posts
    752 Views
    A
    Ah, ok. Somehow missed that line. I thought defining the legacy framework in the api list was sufficient. Cheers!
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Changing the syntax from "SetString" to "Brackets" type

    r20 python
    9
    0 Votes
    9 Posts
    2k Views
    B
    @Cairyn Thanks for the code. It works as expected. @s_bach Thanks for the reference. Reading it at the moment and the whole base container is much more complicated than I thought it would be.
  • Dragging of Parameters to Viewport

    r20 python
    6
    0 Votes
    6 Posts
    747 Views
    B
    @m_adam Gotcha. Thanks for the confirmation.
  • maxon::LoggerTypes::File()

    r21 c++ sdk
    3
    0 Votes
    3 Posts
    520 Views
    kbarK
    Thanks Manuel.Adding that lambda did the trick. Working fine now.
  • Best Practices for Reporting Errors to Users?

    python
    4
    0 Votes
    4 Posts
    1k Views
    dskeithbuckD
    @s_bach & @zipit - Thank you both for the thoughtful replies! I think I'll opt for the status bar for most user-facing feedback, and console logging for anything bigger. Watching the "What could possibly go wrong?" talk now.
  • Copy shader from one material to another

    3
    0 Votes
    3 Posts
    749 Views
    M
    Thanks Bach! I knew it was going to be something simple like that.
  • Selecting the text in a GeDialog MultiLineEditText

    python
    3
    1 Votes
    3 Posts
    417 Views
    ?
    @m_adam You know so much! Thank you for the example code. You have helped me so much, Maxime, particularly on my current project. I am very grateful!
  • New subdivision algorithm as a plugin

    c++ r21
    3
    0 Votes
    3 Posts
    659 Views
    ManuelM
    hello, since r17, some part have change but other remain the same. I would suggest you to first compile the SDK. For that you will need some steps: use the right version of visual studio or xcode, you can find information here[URL-REMOVED] use our project tool to build the solution files. compile a debug versions and a release version. Those should just compile out of the box with no errors. We have a General Plugin Information Manual After that you have to choose a plugin type that fit your need. For your project as @PluginStudent said, an ObjectData (generator) should be the right one. You will find tons of information in our manual for example about the Generator In our sdk (you compiled in first step) there are some example that will help you. You have to register your plugin with RegisterObjectPlugin where you can specify a flag so the generator will pick the child object as an input. About the slider for your parameter you will find information in this page and that manual Of course if you need help we have this forum where you can find a lot of example, information and help. And you can open a new thread for each question you have, we will try to answer them as fast as possible. Cheers, Manuel. [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
  • Remove observer from ObservableFinished

    4
    0 Votes
    4 Posts
    646 Views
    ManuelM
    i'll set that thread as solved.
  • Hide Layers

    Moved
    2
    0 Votes
    2 Posts
    679 Views
    r_giganteR
    Hi @myosis, thanks for reaching out us. With regard to your question, I'm not aware of any mean to hide a layer from the LayerManager nor any function in Cinema that has been designed to achieve this functionality. Cheers, R
  • Switch layout issue in R21.115

    r21
    7
    0 Votes
    7 Posts
    767 Views
    r_giganteR
    Hi Daniel, the reason why it worked "as expected" on older revision was by pure chance - as much as it was for the Redraw thread. Cheers,
  • Setting UA vertical size

    r21 python r20
    3
    1
    0 Votes
    3 Posts
    369 Views
    P
    Ok, something to think about. Never considered using GeuserArea.LayoutChanged when changing the UA size. I will give it a try.
  • No multiple selection in Treeview not working?

    r21 r20 python
    12
    0 Votes
    12 Posts
    2k Views
    P
    Thanks, that solved the issue. -Pim
  • How to Check If you are in a Specific Tab?

    r21 python
    3
    0 Votes
    3 Posts
    333 Views
    B
    @m_adam Thanks. Works as expected.
  • Menu items without RegisterCommandPlugin?

    11
    0 Votes
    11 Posts
    2k Views
    M
    Hi, I'm sorry for the delay, but I can only confirm what you said. In C++ it's possible to call RegisterCommandPlugin but not in Python at runtime. So I guess the best approach is to have as you suggested a menu entry (a pre-registered c4d script or CommandData) that will then create a PopuDialog with a list of all scripts, and then it's up to you to execute them with the code @lasselauch provided. So here an example of how to implement it. import c4d import os def main(): # Gets all python script of a folder searchPath = r"%appdata%\Roaming\Maxon\Maxon Cinema 4D R21_115_XXXXXX\library\scripts" pythonFiles = [os.path.join(folder, f) for f in os.listdir(folder) if os.path.isfile(os.path.join(folder, f)) and f.endswith(".py")] # Build the menu for all the entries menu = c4d.BaseContainer() for pythonFileId, pythonFile in enumerate(pythonFiles): menuId = c4d.FIRST_POPUP_ID + pythonFileId filename = os.path.basename(pythonFile) menu.InsData(menuId, filename) # Example to also list regular command. # Uses POPUP_EXECUTECOMMANDS in ShowPopupDialog flag so if its a command its executed directly menu.InsData(c4d.Ocube, "CMD") # Display the PopupDialog result = c4d.gui.ShowPopupDialog(cd=None, bc=menu, x=c4d.MOUSEPOS, y=c4d.MOUSEPOS, flags=c4d.POPUP_EXECUTECOMMANDS | c4d.POPUP_BELOW | c4d.POPUP_CENTERHORIZ) # If result is bigger than FIRST_POPUP_ID it means user selected something if result >= c4d.FIRST_POPUP_ID: # Retrieves the selected python file scriptId = result - c4d.FIRST_POPUP_ID pythonFile = pythonFiles[scriptId] # Execute it and copy the global to it ( so doc, op are accessible as well) fl = open(pythonFile, 'rb') code = compile(fl.read(), pythonFile, 'exec') exec(code, globals()) # Execute main() if __name__=='__main__': main() ``` Cheers, Maxime.
  • Make Button Invisible And Still Occupies Space?

    r21 python
    7
    0 Votes
    7 Posts
    1k Views
    B
    @PluginStudent @s_bach Thank you for the response. Both works as expected. RE: don't know why you think you need two groups. Just for reference, I was thinking of this logic if self.mode == True: self.Group1_Layout() else: self.Group2_Layout() Anyhow, no further action required