• Bug on the Commandline

    5
    0 Votes
    5 Posts
    769 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
    896 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
    625 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
    952 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
    554 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
    316 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
    685 Views
    mikeudinM
    Great, thank you guys!
  • Ray Tracing In One Weekend

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

    python r21 windows
    3
    1
    0 Votes
    3 Posts
    878 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
    1k 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
    835 Views
    ymoonY
    @cairyn It Works. Thank You. Very Much.
  • Visibility Toggle

    Moved
    6
    0 Votes
    6 Posts
    2k 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
    739 Views
    U
    @cairyn Thank you!
  • Add Database to the Asset Browser

    c++ r25 s26 sdk
    2
    0 Votes
    2 Posts
    521 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
    998 Views
    J
    @m_magalhaes Thanks for the response. Might be able to use your idea as potential solution. John Terenece
  • Priority: PriorityData and PriorityList

    5
    0 Votes
    5 Posts
    1k Views
    ymoonY
    @rownn said in Priority: PriorityData and PriorityList: Hi m_adam, thank you very much for the enlightenment on priorities, it helps alot, and sorry for my late reply. Greetings and thx again rownn PS: I´ll keep the pointed way of posting in mind. Hello @rownn This is another question. I am writing here because there is no way to contact you. You are the developer of "Rounded Corner (c4dnetwork)". Would you make it run on R25?
  • Call plugin by python script with arguments

    r25 python
    3
    0 Votes
    3 Posts
    670 Views
    kosmos3dK
    @m_magalhaes Thank you very much for your reply. Target was to let user run my plugin in pyton script without open its gui, but set options by some command. Meanwhile I came to solution by implementing ExecuteOptionID method. In this way user first sets options in gui and after can CallCommand anywhere he wants in scripts. Again thank you for your time.
  • Possible to send KeyPress Commands to the Commandline async

    python r21
    3
    0 Votes
    3 Posts
    531 Views
    FSSF
    Thank you for the swift reply though