• How to know is DescID is "takeble"?

    python
    3
    0 Votes
    3 Posts
    317 Views
    mikeudinM
    @m_magalhaes Thank you!
  • How can I create a tag which has same outputs as Vertex Map tag?

    python
    4
    0 Votes
    4 Posts
    622 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

    python r21
    7
    0 Votes
    7 Posts
    1k Views
    ferdinandF
    Thanks for the update!
  • Bug on the Commandline

    5
    0 Votes
    5 Posts
    692 Views
    FSSF
    Thanks did report
  • Xcode 13.3 throws framework build errors with R25

    macos c++ r25
    7
    1
    0 Votes
    7 Posts
    1k Views
    fwilleke80F
    Okay, thanks!
  • [Python API] - Foldable Group Bug Still?

    s26 python
    5
    0 Votes
    5 Posts
    800 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.
  • How can get the visibility of the every point/edge/face?

    python
    3
    0 Votes
    3 Posts
    578 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.
  • Compute distance from a point to a mesh

    4
    1
    0 Votes
    4 Posts
    877 Views
    ferdinandF
    Hi, I am looking for hit point. Then if I understand well, my only way would be to use GeRayCollider on all objects ? A point-something projection will also give you a "hit-point" in some sense. The question is if you want to find the closest point for a point on some geometry (projection), or a point on a geometry for a point and a ray (intersection). GeRayCollider realizes ray-triangle intersection testing for PolygonObject instances. For multiple objects you must initialize multiple collider instances (or reinitialize one instance). But you cannot intersection test a null, a spline, or joint object as shown in your screenshot as they do not contain any triangles. When you are just interested in the closest point in some discrete geometry, you can use ViewportSelect or the more modern maxon API equivalent maxon::DistanceQueryInterface with a slightly different and more abstract purpose. ViewportSelect can also be used to pick the object in a scene which is closest to a point (for the cursor for example) for further testing with other methods. In maxon::GeometryUtilsInterface you will find some basic building blocks for writing something of your own.
  • How to open Script Manager and set what Script it is showing?

    c++
    3
    0 Votes
    3 Posts
    486 Views
    mikeudinM
    @kbar I think much better to create your own Edit Script dialog with blackjack and... Save and Execute Buttons. Use GeDialog.AddMultiLineEditText with a flags DR_MULTILINE_SYNTAXCOLOR and DR_MULTILINE_PYTHON.
  • How to get/set single vector value from USERDATA

    python
    2
    1
    0 Votes
    2 Posts
    303 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
  • StringToNumber to BaseTime

    python
    6
    0 Votes
    6 Posts
    651 Views
    mikeudinM
    Great, thank you guys!
  • Ray Tracing In One Weekend

    c++
    4
    3 Votes
    4 Posts
    872 Views
    fwilleke80F
    Cool! Thanks for your community work, Kent!
  • Python Field - Object Data Update

    python r21 windows
    3
    1
    0 Votes
    3 Posts
    785 Views
    C
    Hello @m_magalhaes , Thanks a lot for the tip, works perfectly as you said [image: 1652754301818-cinema_4d_f7fynzcvz4.gif]
  • Base Object - Attributes : Enabled parameter

    5
    1
    0 Votes
    5 Posts
    994 Views
    fwilleke80F
    Since this question is tagged as C++, I'll add the docs link to the dedicated functions that return and set this attribute: BaseObject::GetDeformMode() and BaseObject::SetDeformMode()
  • macOS Monterey - Can't run source processor anymore?

    macos c++ project tool r25
    10
    2
    1 Votes
    10 Posts
    2k Views
    fwilleke80F
    @m_adam said in macOS Monterey - Can't run source processor anymore?: So you have to link for example from /usr/local/bin to a python installation, I personally have Python 3.8.9. Xcode itself ships with a python version you could link to (its in Contents/Developer/usr/bin of the application package). So with that path you can call call sudo ln -s PATH_TO_PYTHON /usr/local/bin/python in terminal. Hi Adam! That is in deed what I tried, creating a symlink that points to Python 3. I didn't use the paths, though, but just linked the word "python" to "python3". I guess that was my mistake. Wouldn't it be easier for Maxon and everybody else, if you just changed the preprocessor call in the projects' PreBuild events to "python3", instead of having to go the symlink way and change things on users' computers (which, I guess, will have side effects when users later decide to install Python 2.7 for some reason)? Cheers, Frank
  • Copy Paste Point Global Position

    python
    3
    0 Votes
    3 Posts
    764 Views
    ymoonY
    @cairyn It Works. Thank You. Very Much.
  • Visibility Toggle

    Moved
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    hi, you already opened this thread, asking for the question, I've answer there. Please, stop asking the same question on different threads and continu on the linked one. Cheers, Manuel
  • Retrieving camera view volume

    sdk c++ maxon api
    3
    1
    0 Votes
    3 Posts
    674 Views
    U
    @cairyn Thank you!
  • Add Database to the Asset Browser

    c++ r25 s26 sdk
    2
    0 Votes
    2 Posts
    468 Views
    ferdinandF
    Hey @kbar, thank you for reaching out to us. How to add asset databases and others things are all explained in the Asset API Handbook. Your specific case is dealt with in the example Add User Databases. You can technically also take a route via the Asset Browser preferences in the Cinema 4D Preferences dialog and the GUI gadget showing these database entries, completely ignoring the Asset API, but I would not recommend doing this. Cheers, Ferdinand
  • Limit On the Number Of Takes

    c++ r20 sdk
    4
    0 Votes
    4 Posts
    910 Views
    J
    @m_magalhaes Thanks for the response. Might be able to use your idea as potential solution. John Terenece