• Wrong editor preview of material plugins with TextureTag repetitions

    s22 c++
    4
    0 Votes
    4 Posts
    1k Views
    D
    Thanks for the investigation. At least now we are aware the problem is not on our side. Cheers, Deyan
  • python plugin in debugging mode

    2
    0 Votes
    2 Posts
    1k Views
    M
    Hi @Yaroslav this is indeed possible however a bit clunky for the moment, but here a full step by step. Install pip with c4dpy -m ensurepip Install Python Visual Studio Debugger with c4dpy -m pip install ptvsd. Within Visual Studio in your launch.json just set up a basic attach setting, here is mine but for more information see Python debug configurations in Visual Studio Code. { "version": "0.2.0", "configurations": [ { "name": "Cinema 4D: Remote Debugger Attacher", "type": "python", "request": "attach", "connect": { "host": "127.0.0.1", "port": 3000 }, "pathMappings": [ { "localRoot": "${workspaceFolder}", "remoteRoot": "." } ] }, ] } The *.pyp plugin should be of course in the same workspace as your launch.json. Edit the *.pyp plugin and write the next code in the first line of your pyp file. import ptvsd ptvsd.enable_attach(address = ('127.0.0.1', 3000)) Start Cinema 4D, wait until its UI is loaded, meaning the pyp plugin is loaded, and the client (your script) is attachable from a debugger. Run the previously created debug configuration (called Cinema 4D: Remote Debugger Attacher). Put a breakpoint somewhere (like in the Execute of a CommandData) to trigger the BP. Enjoy Note this also works nicely for the script, however for script you should call ptvsd.wait_for_attach() after the ptvsd.enable_attach. Cheers, Maxime.
  • Get the String of the Font Data?

    r21 python
    4
    0 Votes
    4 Posts
    695 Views
    B
    @Cairyn @ferdinand Thanks for the response. Printing the base container with their indexes worked in my use case
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Write a python code into a Python Effector

    python
    10
    0 Votes
    10 Posts
    3k Views
    H
    @Cairyn Thank you for your help ! That's it. I confused it all with the wrong word. Sory... Your answers help me very nicely @ferdinand I apologize about going out of the guidelines. I understand this and will create new topic for that point
  • ObjectData::Draw

    c++ r21
    3
    1
    0 Votes
    3 Posts
    833 Views
    A
    Thanks for your answer, it solved my problem. Thank, AiMiDi
  • Limit SplineKnot tangent

    r21 c++
    3
    2
    0 Votes
    3 Posts
    1k Views
    A
    Thanks for your answer, it solved my problem. I used: Vector::ClampMax() and Vector::ClampMin() to limit the tangent to the value I want. Thank, AiMiDi
  • Dynamic elements in a CYCLE, CYCLE empty after loading document?

    c++ r20 r21 s22 r23
    9
    0 Votes
    9 Posts
    3k Views
    fwilleke80F
    Thanks, Maxime! Looks like I have it running flawlessly now. good work on Terraform looks solid! Thank you! It is pretty solid, yes Cheers & happy Easter, Frank
  • LINK EFFECTORS TO CLONERS

    python
    4
    0 Votes
    4 Posts
    2k Views
    H
    Thank you @bentraje and @ferdinand ! You make the deal of the EffectorList function much clearer ! It works well now
  • 0 Votes
    7 Posts
    2k Views
    M
    Hey guys, thanks for the explanations. My only concern is that I can't really do anything besides closing Cinema4D to cancel the operation. Just for reference my plugin is a fluid volume that needs to be visualized in the viewport. This is not an expected workload, stumbled on it by chance, but so can one of the users. Anyway we can close this thread if it's not a bug. Regards, Georgi.
  • 0 Votes
    4 Posts
    1k Views
    B
    @Cairyn @ferdinand Thanks for the response. The python generator works as expected. I did try to retrieve the cache earlier for mograph but with a python tag rather than a python generator, but it has some priority delays. Your solution is much more stable. Now, I don't have to jump to houdini for such simple scenes. Have a great day ahead!
  • Node ID relevant bits?

    4
    0 Votes
    4 Posts
    992 Views
    ferdinandF
    Hi @Virtualritz, without further questions or updates we will consider this topic as solved by Thursday and flag it accordingly. Cheers, Ferdinand
  • Content libraries. How to change path?

    6
    0 Votes
    6 Posts
    1k Views
    L
    Thank you Ferdinand
  • Blank appearing dropdown cycle

    python macos
    5
    0 Votes
    5 Posts
    2k Views
    H
    @m_adam alrighty got it working. Thanks again. You can close this thread if you like. Cheers, Sebastian
  • Best Practice to transfer a variable from another function?

    python sdk
    3
    0 Votes
    3 Posts
    775 Views
    orestiskonO
    Thanks Manuel, yes that's how I ended up doing it in the end. I thought it would've been simpler to extract a variable from the main function, since it had already calculated. All I would need is to save the variable somewhere where the button function can read it, so this is where I tried the global variables but it didn't work.
  • Open a GeModalDialog from a Job Observer

    r20 r21 s22 r23 c++ maxon api
    4
    0 Votes
    4 Posts
    612 Views
    fwilleke80F
    It works perfectly, thanks again! Cheers, Frank
  • R23 usd/tbb version

    r23
    12
    0 Votes
    12 Posts
    4k Views
    r_giganteR
    Hi @rsodre, a quick update from Pixar that hopefully shall address your issue From: Ivan Kolev [email protected] Subject: Re: [PixarAnimationStudios/USD] Deadlock loading usd (#1341) Date: 22 March 2021 at 11:53:37 CET We resolved this by switching our plugin to refer to the copy of libtbb.dylib included with C4D's USD module, using install_name_tool -change As our plugin runs on 3 platforms and on 3 hosts (3dsMax/Maya/C4D), our approach to TBB usage is to rely on its full backward compatibility: we compile/link against the oldest version that does the job for us (4.4) and expect that the hosts provide newer versions. In case of C4D we didn't do that because C4D doesn't include TBB in its main application, though some of its external modules do include their own copy of TBB. Similar to the other modules, we included our (old 4.4) copy of TBB. But this was no problem until now, the copies of TBB carried by C4D's modules haven't interfered in any harmful way. And the new USD module in R23 didn't change that. The source of the problem here is probably the fact that our plugin links to our own static copy of USD, which causes USD to be loaded twice, along with two different copies of TBB (and maybe the version mismatch is not important). So, linking against C4D's copy of TBB resolved the TBB deadlock problem, but we have now a new duplicate symbol problem, which I opened a new issue about: #1479 Cheers, R
  • Is it possible to update the Python Version a release uses?

    3
    0 Votes
    3 Posts
    857 Views
    ManuelM
    hi, technically, it is possible, but you will have to figure it out yourself and be prepare to do a lot lot work. the answer is pretty no. Cheers, Manuel
  • Fields and Adding an Effector

    c++ python r20 sdk
    3
    0 Votes
    3 Posts
    1k Views
    D
    @m_magalhaes Thank you! Works perfectly. Dan
  • EffectorData: Set clone visibility?

    r20 r21 s22 r23 c++
    3
    1
    0 Votes
    3 Posts
    543 Views
    fwilleke80F
    Works like a charm, thank you! Greetings, Frank