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.
  • Camera animation to Text file?

    Moved r20 python
    3
    0 Votes
    3 Posts
    886 Views
    V
    This is a great start - will defiantly be using this to get closer to the desired end result Thanks so much Manuel for your help!
  • How to make DrawTexture ignore the Depth of Field option?

    python r20
    8
    0 Votes
    8 Posts
    962 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • controlled rendering programmatically

    sdk python
    3
    0 Votes
    3 Posts
    561 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • Sperical floor issue

    sdk c++ python
    3
    0 Votes
    3 Posts
    599 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • Linearize an exponential function

    c++ sdk
    4
    0 Votes
    4 Posts
    586 Views
    mfersaouiM
    @r_gigante Finally I found the solution to linearize the subdivision expansion on Adaptive spline interpolation on the angle deviation. I just replaced the line : radVal = c4d.utils.DegToRad(90 * (1.0 - val) By : radVal = math.pow(val, -0.85) I changed also the slider user data unit to REAL if I want to keep it with a PERCENT unit I just multiply the value by 100 radVal = math.pow(val*100, -0.85) Here is demo: [image: 1565669857246-ezgif.com-optimize.gif]
  • Unusual Dynamic Inputs from GeDialog

    r20 python
    3
    0 Votes
    3 Posts
    416 Views
    B
    @m_adam Thanks for the help. Works as expected. Have a great day ahead!
  • Highlighted Command Text/Icon when it is executed?

    r20 python
    7
    0 Votes
    7 Posts
    878 Views
    B
    Thank you @m_adam. Work as expected! (I actually just ended up learning about the decorator property since its new to me. haha. Thanks for that). Just want to confirm, am I right to think this is the code flow: Register Plug-In @property state GetState Execute(Button Click) @state.setter state @property state GetState Then back again to #4 for the click.
  • Jiggle modifier not cached

    c++ r20 r19
    3
    0 Votes
    3 Posts
    452 Views
    ManuelM
    Hello, Regarding the question yes, using GetDeformCache is the way to go. Using one object, there's not too much difference between MCOMMAND_CURRENTSTATETOOBJECT and MCOMMAND_JOIN as the MCOMMAND_JOIN is calling a MCOMMAND_CURRENTSTATETOOBJECT for each object. The obvious part is that the Join command will create one object while the other will return a hierarchy. (if there are children) Cheers, Manuel
  • Saving pointers to BaseObjects for use between scene updates

    c++
    3
    0 Votes
    3 Posts
    536 Views
    C
    Greetings! Thanks for the reply. I kinda goofed up- apparently my objects were being improperly deconstructed before I was trying to use them, which was causing the BaseLink to get deleted and crash on subsequent access. BaseLink does indeed work fine and solves my problem. Sorry for the confusion! -CMPX
  • Beginner:How to set A cube as the child of B cube by python?

    Moved
    3
    1
    0 Votes
    3 Posts
    887 Views
    I
    @m_adam Thanks a lot, great help, I will try your way
  • API questions

    Moved
    3
    0 Votes
    3 Posts
    626 Views
    J
    @m_adam thanks so using c4d.documents.SaveDocument the window is still showing up.. even with "SAVEDOCUMENTFLAGS_NONE" or "SAVEDOCUMENTFLAGS_AUTOSAVE" could it still be showing up because of an error in the file path its trying to save to or something like that?
  • [python] SetFont not working

    r20 sdk python
    6
    0 Votes
    6 Posts
    2k Views
    I
    @m_adam said in [python] SetFont not working: In which version are you? The code I posted is working nicely in R20.059. 20.059. Before i tried any methods, that's my fail. Not work for me. From new start of c4d. - it works
  • How do I change parameters in Camera using user data

    4
    0 Votes
    4 Posts
    691 Views
    r_giganteR
    Can you create user interfaces with Python or do you somehow build the tool interface with user data? Yes you can! Cinema 4D Python API comes with a complete set of classes to deliver full-fledged UI to your scripts or plugins. Please start looking at the examples in the Python Github repository to get an idea on Python API potentials. If I wanted this camera rig to be setup via a button would I have to create the xpresso interface or would this be done another way? Depending on the final purposes, skipping the Xpresso graph in favor of a Python-based logic could be preferred if the logic is supposed not to be changed by development-agnostic guys. The initial idea of Xpresso was exactly of providing a convenient and easy-to-use interface to implement programmatic behaviors or models without writing a single line of code. Also, is it best to learn Python basics before jumping into C4D plugin development? If so what are the best starting points? Definitively it is! I warmly recommend going through a first dive in Python, get comfortable with those concepts representing its development foundation and then move to the Cinema 4D Python API. This will help you to better understand the examples. Best, Riccardo
  • Beginner:How to set axis to the bottom of a cube by python?

    Moved
    6
    2
    0 Votes
    6 Posts
    2k Views
    M
    @ilad Well, it's not limited to non-animated objects. As @r_gigante posted, you're actually modifying the points and the matrix. Both operations can also be achieved manually. So, no difference if animated or not. The only thing you have to keep in mind when modifying animated objects is to make sure, all keys containing Matrix/PLA data have to be handled as well.
  • Export objects with materials to new document

    python r19
    2
    0 Votes
    2 Posts
    438 Views
    A
    Found it! c4d.documents.IsolateObjects(doc, t_objects) A helper routine to copy the objects t_objects of document doc to a new document (returned). All materials associated are also copied over and the links are corrected. Parameters: doc (c4d.documents.BaseDocument) – The document that contains the objects in t_objects. t_objects (List[c4d.BaseObject]) – The objects to isolate. Return type: c4d.documents.BaseDocument Returns: The document containing the isolated objects. Thank you all !
  • Get current frame at render time with Python?

    3
    0 Votes
    3 Posts
    703 Views
    A
    Hi Maxime, thanks for the response! I was aware that the scene gets copied, but unaware of the GetDocument function so it definitely makes sense! I will give that a try and report back. I have been trying this with both a python effector, as well as in a python xpresso node. Andrew
  • Search Icon in Menubar

    3
    1
    0 Votes
    3 Posts
    557 Views
    lasselauchL
    Wow, thanks so much for this complete Example, Maxime..!!! Great work, really appreciated! Cheers, Lasse
  • Beginner:How can i set a key-frame and value to a cube by python?

    Moved
    5
    1
    0 Votes
    5 Posts
    2k Views
    ManuelM
    hello, thanks @tummosoft, it's nice to see it's helpful @ilad By the way instead of ID_BASEOBJECT_POSITION you could have use ID_BASEOBJECT_REL_POSITION. Both Ids are the same. If you want to know how to get those ids you can use the python console and drag and drop parameters, more information on this page In this case the DescID is composed of two DescLevel. The first define the Vector type, the second de Float type for X, Y and Z. (DescID can have less or more levels) To change the Size.Y of the cube, the descID will be : c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN, c4d.DTYPE_VECTOR, 0), c4d.DescLevel(c4d.VECTOR_Y, c4d.DTYPE_REAL, 0))) To change the scale of the object the descID will be : c4d.DescID(c4d.DescLevel(c4d.ID_BASEOBJECT_REL_SCALE, c4d.DTYPE_VECTOR, 0), c4d.DescLevel(c4d.VECTOR_Y, c4d.DTYPE_REAL, 0))) Cheers Manuel
  • ToolResizeData UI

    7
    0 Votes
    7 Posts
    866 Views
    r_giganteR
    @rsodre : looks like it.
  • i code to create a group of cylinders in C4D python,why no response?

    Moved
    5
    1
    0 Votes
    5 Posts
    1k Views
    I
    @r_gigante Thank for your professional help! I am so grateful for your commitment!