• Tag plugin and rendering

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    457 Views
    S
    Hello, without seeing your code or any error message it is impossible to give any advice. But "works in viewport but not in rendering" sounds like you are using c4d.documents.GetActiveDocument() somewhere. See also BaseDocument Manual. best wishes, Sebastian
  • Set the "DrawCircle" orientation to face camera

    Cinema 4D SDK
    5
    0 Votes
    5 Posts
    693 Views
    mfersaouiM
    @m_magalhaes Thank you. I made some changes but its work! Cheers, Mustapha
  • 0 Votes
    5 Posts
    941 Views
    mfersaouiM
    @s_bach Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.
  • 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
    1k 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
    1k 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
    452 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
    768 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
    1k 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
    944 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
    565 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
    842 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
    3k 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
    602 Views
    lasselauchL
    Wow, thanks so much for this complete Example, Maxime..!!! Great work, really appreciated! Cheers, Lasse