• Touch input objects withot resetting its cache

    Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    1k Views
    ferdinandF
    Hey @baca, as I said, the control object structure you want is not possible. I tried and wrote the necessary code when I answered here initially, and Cinema 4D will really start to freak out. You cannot have nested hierarchies of muted caches. If you really want to do this, then you must use the approach proposed by me. If you want to also hide the objects in renderings, then you will have to also set that parameter. If you poke around long enough, you might find a solution by muting the caches, but this is out of scope of support. As I said, I did already try when I wrote my first posting, maybe you have more luck. But as also stated in my first posting, you are poking here the sleeping bear called "classic API node dependencies". Cheers, Ferdinand
  • 1 Votes
    3 Posts
    1k Views
    L
    @m_adam Thanks so much! You are a very professional guy!!!
  • Getting Current Render Frame

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    2k Views
    M
    Sorry for the late reply In order to do that you will need to start a new thread, and you need to keep alive the thread as long as it execute, meaning you will need to store it in a global variable. Best way would be to reach octane directly as 3rd party are free to implement this as they want. Cheers, Maxime.
  • 0 Votes
    3 Posts
    802 Views
    ferdinandF
    Hello @LingZA, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • How to know is DescID is "takeble"?

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    385 Views
    mikeudinM
    @m_magalhaes Thank you!
  • 0 Votes
    4 Posts
    841 Views
    ferdinandF
    Hello @lingza, well as lined out, you cannot implement a VertexmMapTag which is the same as a normal VertexMapTag but has extra parameters to realize your desired functionality. You can solve this problem with either the pattern I described under point 3 in my last posting, or by implementing a ToolData plugin which simply generates the tag. The solution using a driver tag has the advantage that the user can continuously tweak the output of the vertexmap, while a tool must be picked up again. Actually, I mean that I want to create a tag which contains the vertex weights, then vertex weights are used by ZRemesher after I put the tag into Density Map linkbox. So I don't need a "vertex map" indeed, but I need a tag I describe above. This is unfortunately not true. You will need a vertex map tag, as this parameter, the Density Map parameter, will accept only a VertexMapTag. It will not know what to do with a CustomDataTag . I would recommend having a look at the project file I have posted above, it contains a practical example for the pattern of a tag driving a vertex map. Cheers, Ferdinand
  • Context Problem

    Cinema 4D SDK python r21
    7
    0 Votes
    7 Posts
    2k Views
    ferdinandF
    Thanks for the update!
  • How to make a Python Plugin...

    Cinema 4D SDK python
    5
    1 Votes
    5 Posts
    2k Views
    mikeudinM
    @noseman seems that it's needs to be updated https://github.com/nrosenstein-c4d/c4d-prototype-converter/issues/52
  • 0 Votes
    3 Posts
    760 Views
    L
    Thanks so much!!! Your answer makes me understand that PolygonObject.GetPolygonS(self) and PolygonObject.GetPolygonH(self) respectively represent selection states in a list from BaseSelect and visibility states in a list from BaseSelect.
  • Draw editable spline in the viewport

    Cinema 4D SDK python
    5
    0 Votes
    5 Posts
    2k Views
    bacaB
    @ferdinand thanks for explanations and example.
  • Python writing to desktop

    Moved General Talk python r25
    4
    0 Votes
    4 Posts
    2k Views
    ferdinandF
    Hello @Peek, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Why are there no Sketch and Toon shaders?

    Cinema 4D SDK windows python s26
    3
    0 Votes
    3 Posts
    710 Views
    ferdinandF
    Hello @blastframe, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Using Path Selection

    Cinema 4D SDK python r23 windows
    3
    1
    0 Votes
    3 Posts
    800 Views
    ferdinandF
    Hello @DGLopez, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Modify rotation of clone child objects

    Cinema 4D SDK
    5
    1
    0 Votes
    5 Posts
    2k Views
    M
    Hello @will_blizzard, without further questions or postings, we will consider this topic as solved by Wednesday 31/05/2023 and flag it accordingly. Thank you for your understanding, Maxime.
  • How to get/set single vector value from USERDATA

    Cinema 4D SDK python
    2
    1
    0 Votes
    2 Posts
    356 Views
    ferdinandF
    Hello @mikeudin, Thank you for reaching out to us. Vectors represented by the type c4d.Vector are immutable in Cinema 4D, so one intentionally cannot change one of the components of a vector after it has been instantiated (matrices are not immutable over their vector components on the other hand). To achieve what you want to do, you must write: old = Cube[c4d.ID_USERDATA, 2] Cube[c4d.ID_USERDATA, 2] = c4d.Vector(old.x, old.y, 12) The following would also be possible, but it is not an improvement IMHO: Cube[c4d.ID_USERDATA, 2] = c4d.Vector(Cube[c4d.ID_USERDATA, 2].x, Cube[c4d.ID_USERDATA, 2].y, 12) Cheers, Ferdinand
  • [Python API] - Foldable Group Bug Still?

    Cinema 4D SDK s26 python
    5
    0 Votes
    5 Posts
    1k Views
    C
    @m_magalhaes - All good! Just wanted to make certain that the issue hasn't been fixed yet (since 2018..). In the future I'll write a python class, extending a group that is collapsible using the workaround you mentioned. Thank you for getting back to me and looking into this! Cheers.
  • StringToNumber to BaseTime

    Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    777 Views
    mikeudinM
    Great, thank you guys!
  • Python Field - Object Data Update

    Cinema 4D SDK python r21 windows
    3
    1
    0 Votes
    3 Posts
    1k Views
    C
    Hello @m_magalhaes , Thanks a lot for the tip, works perfectly as you said [image: 1652754301818-cinema_4d_f7fynzcvz4.gif]
  • c4dpy "sysctl: No such file or directory"

    General Talk s26 python
    4
    1
    0 Votes
    4 Posts
    1k Views
    I
    Sorry for the late reply, my issue went away after reinstalling C4D so I forgot about it Thank you for your feedback
  • 0 Votes
    4 Posts
    930 Views
    ferdinandF
    Hello @byoneukp, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand