• Dialog window with palette

    python
    3
    1
    0 Votes
    3 Posts
    795 Views
    merkvilsonM
    Is it possible to save and load the group window in a way similar to the l4d files?
  • How to specify file type subdirectory for MSG_RENAMETEXTURES

    c++
    2
    0 Votes
    2 Posts
    548 Views
    ferdinandF
    Hey @Deyan, Thank you for reaching out to us. The answer for public users is, no, you cannot do that, and even with a bit deeper access this will be tricky. Cheers, Ferdinand
  • How to get only tracks displayed in timeline User Mode

    python 2024
    3
    0 Votes
    3 Posts
    748 Views
    K
    Hi @ferdinand , Thank you for clarifying. I needed a solution for my tool to determine which track/key is displayed&selected. But if I can't do that in user mode, I'll make sure my tools don't work when the timeline is in user mode.
  • Python: Detect Plugins

    2024 python windows
    12
    0 Votes
    12 Posts
    2k Views
    J
    Thanks for the response. I'll see if this does what I need it to John Thomas
  • Rename Layers with Python containing Emoji?

    2024 python windows
    3
    3
    0 Votes
    3 Posts
    745 Views
    ferdinandF
    Hello @gaschka, Thank you for reaching out to us. Yes, this is an encoding issue. In general, Unicode is supported by the Python to C++ bindings, as you can see, French, German, and Turkish diacritics are all correctly transported, as well as Chinese characters. [image: 1709563393413-5bfdbc74-f638-4fd8-8df9-2b95479b233b-image.png] But all these are part of the Basic Multilingual Plane (BMP) while the emojis are part of the Supplementary Multilingual Plane (SMP) of the Unicode table. It could either be that there is something not implemented or some bits get chopped off while data is sent to the C++ layer. I don't really know, the person who is responsible for the Python bindings, @m_adam, is on vacation. I will ask him once he is back, as I too would be guessing what is happening here exactly. Cheers, Ferdinand
  • How to make static texts bold? Icons?

    2024 python
    2
    0 Votes
    2 Posts
    570 Views
    ferdinandF
    Hello @momoko, Thank you for reaching out to us. I understand that especially when getting familiar with a new API that the thirst for knowledge is immeasurable and the questions are uncountable but I must also point out our Support Guidelines here, especially our Support Topic Rules. A support topic should be mono-thematic, i.e., usually have one question only. If you have multiple questions, please open multiple topics. Please also make sure that your questions are repeatable as outlined in the guidelines. Usually this means complete code. I can guess from the context in this case that you are talking about GeDialog but I might not be able to in a more complex case. How can I make a static text bold? I tried some common methods in Python but they didn't work! I am not sure what you mean with common methods in Python, but you can make a static text font bold by a bit counterintuitively setting its border style. There is no italic option and bold emphasis should be used only very selectively. self.AddStaticText(id=2001, flags=c4d.BFH_SCALEFIT, name="Hello World", borderstyle=c4d.BORDER_WITH_TITLE_BOLD) How can I add an icon to a button without using custom icons? Does Cinema4D provide any default icon like Blender? I am not 100% sure how this is meant. Buttons with icons and text are a bit atypical in Cinema 4D and usually only appear in palettes. The standard dialog button cannot have an icon. But you can use a CUSTOMGUI_BITMAPBUTTON, but they are not really meant to have a caption. You can find a Python example here. Cheers, Ferdinand
  • How to preserve the animation of a sphere

    s26 c++ windows
    9
    2
    0 Votes
    9 Posts
    2k Views
    P
    @i_mazlov thank you very much
  • Python Documentation - Icon Color

    2024 python
    4
    0 Votes
    4 Posts
    1k Views
    i_mazlovI
    Hi @del, It's hard to predict future changes. It's likely the c4d.ID_BASELIST_ICON_COLORIZE_MODE_CUSTOM + 1 approach would stay untouched for the compatibility reasons, but who knows if there'd be any change requests that'd break this. Cheers, Ilia
  • How to create Tabs with Python?

    2024 python
    4
    0 Votes
    4 Posts
    745 Views
    M
    @Dunhou @i_mazlov Thank you guys!
  • Sound effector - Volume

    python
    2
    0 Votes
    2 Posts
    592 Views
    ferdinandF
    Hello @merkvilson, Thank you for reaching out to us. Please put more effort into making yourself understood. While we prefer short and precise questions we do not want to guess what users mean. I assume you are talking here about the "Sound group" of the Sound Effector. But it has no "Volume" parameter, neither in this "Sound group", nor somewhere else in the object. The catch is here that "Sound" is not just a foldable group. Because we can select it (see screen below), we know it must be data type. [image: 1709284570444-25f548d1-cc2a-40c8-9e26-af1b080e8da2-image.png] Being set is here a c4d.SoundEffectorData instance, with it you can control the details in this sound section. To discover parameter values, please follow our Python Console: Parameter Drag & Drop manual. Cheers, Ferdinand
  • Change Dialog Text color

    2024 python
    4
    0 Votes
    4 Posts
    783 Views
    i_mazlovI
    Hello @momoko , Welcome to the Maxon developers forum and its community, it is great to have you with us! Getting Started Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules. Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment. Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support. Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads. It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions. About your First Question Thanks to @Dunhou for providing correct solution! Cheers, Ilia
  • Can we handle drag document from treeview?

    windows python 2024
    3
    0 Votes
    3 Posts
    650 Views
    DunhouD
    Hi @i_mazlov , Sadly the GenerateDragData() not work in python, I had try the c4d.DRAGTYPE_FILENAME_SCENE, but it will return bad without GenerateDragData(),seems nothing we can do here. Cheers~ DunHou
  • Undraw Slider in TreeView?

    windows python 2024
    3
    2
    0 Votes
    3 Posts
    682 Views
    gheyretG
    Hi!@ferdinand Yes , That's what i want to do! I never didn't know LV_CHECKBOX_HIDE would work with LV_SLIDER, I simply assumed that it would only work with LV_CHECKBOX and LV_CHECKBOXUSER. But anyway i test it in my code , and it works perfectly! Thank you so much for your reply. Cheers~
  • How to access thinkin particles data channels correctly?

    c++ 2024
    3
    0 Votes
    3 Posts
    715 Views
    ferdinandF
    Hey @Aaron, thank you for sharing your solution! Cheers, Ferdinand
  • Cannot set layer parameter for capsules in 2024.3.1

    python 2024
    3
    1
    2 Votes
    3 Posts
    594 Views
    M
    Hi thanks for the detailed report, I fixed the issue it be available in the next non-hotfix release. As a workaround you can do dId = c4d.DescID(c4d.ID_LAYER_LINK) allObjects[i][dId] = myLayer Cheers, Maxime.
  • Unable to set override in take

    python
    4
    0 Votes
    4 Posts
    856 Views
    ferdinandF
    Hey @robpayne that is great to hear, thank you for informing us!
  • Timeline commands ran via Python script does not have same result

    2024 python
    8
    0 Votes
    8 Posts
    2k Views
    D
    Marvelous @Dunhou, thanks yet again!! Here's the final script in case someone else has use for it: from typing import Optional import c4d doc: c4d.documents.BaseDocument # The active document op: Optional[c4d.BaseObject] # The active object, None if unselected def main(): # Retrieves BaseTime of frame 5, 20 start = 0 end = 1 if c4d.CheckIsRunning(c4d.CHECKISRUNNING_ANIMATIONRUNNING) == True: c4d.CallCommand(12412) # Play Forwards # Loops through the frames for frame in range(start, end + 1): # Changes the time of the document doc.SetTime(c4d.BaseTime(frame, doc.GetFps())) # Updates timeline c4d.GeSyncMessage(c4d.EVMSG_TIMECHANGED) # Redraws the viewport and regenerate the cache object c4d.DrawViews(c4d.DRAWFLAGS_ONLY_ACTIVE_VIEW | c4d.DRAWFLAGS_NO_THREAD | c4d.DRAWFLAGS_STATICBREAK) # Pushes an update event to Cinema 4D c4d.EventAdd(c4d.EVENT_ANIMATE) if __name__ == '__main__': main()
  • VariableTag, Resize, and CopyTo

    2024 c++
    18
    0 Votes
    18 Posts
    3k Views
    D
    Hi Ilia, I'm on Mac 13.3 and C4D 2024.0.0 at the moment. Dan
  • Foldable Groups in Python GeDialog

    python 2024
    5
    0 Votes
    5 Posts
    1k Views
    i_mazlovI
    Hi @BretBays, Sorry for the delayed answer. Depending on how you picture the final look of your gui and how complex the behavior you'd like to have there, the means can be different. There's no easy way to achieve the same look as with "Freeze Transform" inside GeDialog. The suggested way would be to implement the logic manually and hide/show content by the button or a bitmap button. Such approach is demonstrated in the following examples: gedialog_menu_hide_content_r15.py that's pointed out by @Dunhou shows how to hide/show content customgui_quicktab_r19.py shows how to organize switch between your data using tab buttons If you really want to have the exact same look as foldable groups in the Description context, you could probably try drawing your layout with the DescriptionCustomGui that is capable of that (c++ example). However, I personally don't think this approach is worth the effort. Cheers, Ilia
  • List of object visible by a camera within Safe Frames

    s26 python 2023 2024
    8
    0 Votes
    8 Posts
    2k Views
    F
    Hi @i_mazlov , Thank you for confirming my solution. Best regards, Tomasz