• 0 Votes
    9 Posts
    2k Views
    ManuelM
    Hello, This thread will be considered as solved tomorrow unless you have something to add ? Cheers, Manuel
  • 1 Votes
    4 Posts
    884 Views
    ferdinandF
    Ok, thank you. I was a bit unsure what "one ring points" are supposed to be and if this is actually a bug and not a feature Cheers, zipit
  • Camera animation to Text file?

    Moved Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    882 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!
  • Unusual Dynamic Inputs from GeDialog

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    416 Views
    B
    @m_adam Thanks for the help. Works as expected. Have a great day ahead!
  • 0 Votes
    5 Posts
    2k Views
    ManuelM
    hi @cinamatic , You should open a new thread for your question as it is not related to this thread. I found this thread where you will find some useful information about takes and material. If you have any question, please open your own thread explaining what you are trying to achieve and pointing to those different threads. Futur user will find every information to follow the discussion. Cheers, Manuel
  • API questions

    Moved Cinema 4D SDK
    3
    0 Votes
    3 Posts
    625 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?
  • 0 Votes
    3 Posts
    870 Views
    I
    @m_adam Thanks a lot, great help, I will try your way
  • [python] SetFont not working

    Cinema 4D SDK 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
  • Generator Plugin update while under Fracture Object

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    794 Views
    ManuelM
    Hello, Sorry for the delay. The bugs have been confirmed and will be fixed on a futur release. Cheers Manuel
  • 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.
  • 0 Votes
    5 Posts
    1k Views
    ManuelM
    hello, If you have nothing to add, this thread will be considered as "solved" tomorrow. Cheers, Manuel
  • Export objects with materials to new document

    Cinema 4D SDK python r19
    2
    0 Votes
    2 Posts
    431 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 !
  • 1 Votes
    3 Posts
    1k Views
    J
    @m_adam Thank you very much ! it is certainly helpful !!
  • Get current frame at render time with Python?

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    697 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
  • 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
  • Search Icon in Menubar

    Cinema 4D SDK
    3
    1
    0 Votes
    3 Posts
    553 Views
    lasselauchL
    Wow, thanks so much for this complete Example, Maxime..!!! Great work, really appreciated! Cheers, Lasse
  • Highlighted Command Text/Icon when it is executed?

    Cinema 4D SDK r20 python
    7
    0 Votes
    7 Posts
    871 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.
  • 0 Votes
    5 Posts
    1k Views
    I
    @r_gigante Thank for your professional help! I am so grateful for your commitment!
  • DrawHUDText returns a white box instead of a text?

    Cinema 4D SDK r20 python
    19
    0 Votes
    19 Posts
    3k Views
    M
    Regarding the Z setting of DrawHUDText (I'm not sure about which one to be honest since there is no Z param for this method) previously the fact that HUD was behind poly object was a limitation regarding how our draw call was done by the viewport, but this is addressed in S22 and its the expected result that a HUD text is not overridden by any other objects but act as a HUD and to be draw in front of everything. Cheers, Maxime.