• 0 Votes
    4 Posts
    865 Views
    ferdinandF
    Hey @ll2pakll, yes, any kind of simulation/solver is usually quite a bit of work; and as with most things, most of it is pushing data around in a 'clever' way and not the actual algorithm. You might get away with just saturating the system (add frames or "redraws"), but be warned, you will run into more problems with this approach. To have a robust solver, you must decouple it from the FPS and scene update events; this is not just a Cinema 4D thing, but universal. Cheers, Ferdinand
  • Python tag doesn't work when rendering

    Cinema 4D SDK windows 2023 python
    6
    0 Votes
    6 Posts
    1k Views
    L
    @ferdinand Your solution of replacing the doc = c4d.documents.GetActiveDocument() line with doc: c4d.documents.BaseDocument = op.GetDocument() really worked. From my point of view, as an ordinary person, your level of understanding of the code seems to be something beyond the realm of possibility. I wish you a good day and thank you again for your help.
  • Time Shift. Python tag.

    Cinema 4D SDK windows python 2023
    3
    0 Votes
    3 Posts
    592 Views
    L
    @ferdinand Thank you very much for your reply. I only need to animate one parameter and I have already written something similar to this parameter cache myself, you saw it in a previous question and advised me to change the location of the cache for more reliability. I will take your advice in the future to avoid reinventing the wheel. Thanks again for your help.
  • Python Xpresso Node

    Cinema 4D SDK windows python 2023
    5
    0 Votes
    5 Posts
    1k Views
    M
    Hi @Brakusha, welcome in plugin cafe ! c4d.ID_OPERATOR_COFFEE is working in all versions, please open a new topic with a code that demonstrate the issue and with a short explanation about what you want to achieve. I would also highly recommend you to read our Support Guideline to know how to get the best support from us. Cheers, Maxime.
  • node size

    Cinema 4D SDK python windows 2023
    4
    0 Votes
    4 Posts
    840 Views
    L
    Thank you for the answers.
  • Adding ports to nodes.

    Cinema 4D SDK 2023 python windows
    3
    0 Votes
    3 Posts
    612 Views
    L
    @ferdinand said in Adding ports to nodes.: DescID Thank you so much. I am pleasantly surprised at the level of your responsiveness. When I wrote "Global Data" I accidentally used the wrong word, I meant "Global Coordinates". I have read your links and code very carefully. Actually the concept of DescID is not so much complicated as confusing, the easiest thing would be to have something like an interactive online converter that could show the attributes of the desired objects and their corresponding id. I will try to understand the concept of DescID, deeper. And thank you again for your very detailed answer. Have a nice day.
  • Saving Documents

    Cinema 4D SDK python 2023
    3
    0 Votes
    3 Posts
    529 Views
    A
    Hi Ilia, Thanks for the reply - you're correct about what I'm trying to do! I've tried your first option and unfortunately the following dialog pops up: "Unable to write file $FILE$ (file may be write protected)" This dialog does not appear if the file is saved manually with the File -> Save Project As... Dialog The save location is a network drive. Let me know if theres a workaround? For your second option - is it possible to specify the exact filename here? EDIT: It looks like you can also specify a filename here, which has worked - thanks !
  • subprocess not running in background

    Cinema 4D SDK python 2023 macos
    4
    0 Votes
    4 Posts
    846 Views
    B
    MAny thanks Ferdinand. I will look into the BatchRender suggestion. That looks promising.
  • 0 Votes
    5 Posts
    798 Views
    gheyretG
    @ferdinand Indeed, the allure of good looks can be captivating at times. In fact, my primary objective was to explore the development of a pie toolbar, which may seem unconventional but has always held a deep fascination for me. I sincerely appreciate your valuable advice and will certainly give it a try. Cheers, Gheyret
  • 0 Votes
    5 Posts
    1k Views
    ThomasBT
    @ferdinand This is a command, and you can c4d.CallCommand it, but that is all the control you have. thank you Ferdiand,
  • Can't debug C4D 2023 and 2024 on macOS

    Cinema 4D SDK 2023 2024 c++ macos
    11
    1
    0 Votes
    11 Posts
    2k Views
    fwilleke80F
    @ferdinand said in Can't debug C4D 2023 and 2024 on macOS: first, thank you very much for investing more time into this and with that saving time for me, truly appreciated. You're welcome. If any of this get any of us further it's worth the time. @ferdinand said in Can't debug C4D 2023 and 2024 on macOS: But let us discuss the details per mail. Okay! Cheers, Frank
  • How to get OutLine of Polygon object

    Moved General Talk 2023 c++ python
    9
    1
    0 Votes
    9 Posts
    2k Views
    Paul EverettP
    you can test for all cases, that's why I call those edges "candidates". The devil is always in the details. There are many ways to skin this cat. best Paul
  • Capsules Drag & Drop

    Cinema 4D SDK 2023 c++ windows
    7
    1 Votes
    7 Posts
    1k Views
    J
    Thanks for the response, it's all working properly now. John Terenece
  • 0 Votes
    4 Posts
    1k Views
    S
    @ferdinand Just ran into the same problem. Thank you for the solution!
  • How to find and delete a node in a NodeGraph?

    Cinema 4D SDK c++ 2023
    5
    0 Votes
    5 Posts
    2k Views
    kbarK
    @ferdinand said in How to find and delete a node in a NodeGraph?: Fig. I: The two IDs are displayed in the node editor info panel for the selected node. Make sure to have Preferences\Node Editor\Ids enabled to also see the node ID in addition to the asset ID. I didn't know about this! I have been copying and pasting the selected nodes into a text editor up until now, which in itself is a very cool feature.
  • 0 Votes
    8 Posts
    1k Views
    fwilleke80F
    I already tried using 8 bit greyscale. Still doesn't work in 2023 on macOS, but on the other C4D/OS combinations. Will try RGB, too. If that doesn't work either, I'll be back and try to write a minimal example. Cheers, Frank
  • Script path instead of call command in Python

    Cinema 4D SDK 2023 python
    2
    0 Votes
    2 Posts
    541 Views
    ferdinandF
    Hello @specnazspe, Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us! Getting Started Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are: Support Procedures: Scope of Support: Lines out the things we will do and what we will not do. Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon. Forum Structure and Features: Lines out how the forum works. Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner. About your First Question Command IDs are assigned dynamically to a script and therefore can change. It seems also a bit overly complicated to have a tag that evaluates user data interactions on its host to call a command wrapping a script. Commands are based on IDs, so you cannot pass them a script path, but Python itself has one million and one way to have Python code execute other Python code. Since you want to use the content of your script just as a library, you should make it one. Place the logic of it in a library apth of your liking and import that logic both into your Script manager script and Python tag when needed. You could use the std lib function runpy to run the code found at a script path yourself. Basically, what I did in run_script here. Find here the matching thread. You could also just manipulate sys.path from your tag to inject the path where your script lies, so you can then import the script like a module. I would not recommend doing point 2 or 3 because they are both error prone. Just expose the commonly used functionality used both by the script and tag as a lib. edit: As pointed out by @m_adam, since S26, you can also evaluate the dynamic ID of scripting objects from Python. Finde an example in load_python_script_r26.py. The bread and butter of this is c4d.GetDynamicScriptID. Cheers, Ferdinand
  • 0 Votes
    5 Posts
    805 Views
    F
    @m_adam OK. Thank you very much. Cheers
  • How can I use Plane Cut in Python

    Cinema 4D SDK python 2023 windows
    3
    0 Votes
    3 Posts
    605 Views
    C
    Thank you very much! Now it is working.
  • Can't install pygrib module

    Cinema 4D SDK
    2
    1
    0 Votes
    2 Posts
    305 Views
    M
    Hi @peteclear, my recommendation would be to install Cinema 4D again on another directory, to be sure you did not forget any reference to Vray. Think about environment variable that may force cinema 4d to load Vray from some other locations. If this does not solve you can run the same command with the python interpreter located in {C4D_INSTALLATION_PATH}\resource\modules\python\libs\python37.win64.framework. Make sure to have Cinema 4D closed when you run it, once done you should be able to start Cinema 4D and use your 3rd party library. Final note, R23 is out of support scope and installing pip packing with the second method I mention is not recommended since this is untested, so some part of the installed modules may not work. Cheers, Maxime.