Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Yaroslav
    3. Topics
    Y
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 18
    • Groups 0

    Topics

    • Y

      python plugin in debugging mode

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      2
      0 Votes
      2 Posts
      812 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.
    • Y

      phong tag

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK c++ sdk
      9
      0 Votes
      9 Posts
      4k Views
      C
      @Yaroslav If you are simply looking for a way to manipulate vertex normals there is a great plugin out there: http://frostsoft.blogspot.com/2012/01/vertex-normal-tool-plugin_80.html?m=1
    • Y

      Turn Bezier spline to linear spline

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      8
      0 Votes
      8 Posts
      2k Views
      Y
      @ferdinand Oh, thanks! Quite a nice idea!
    • Y

      Get Spline Data from document->GetActiveObject();

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK c++
      8
      0 Votes
      8 Posts
      2k Views
      Y
      @m_magalhaes Thank you, Manuel!
    • Y

      compiling for r20 new solution

      Watching Ignoring Scheduled Pinned Locked Moved Cinema 4D SDK
      4
      0 Votes
      4 Posts
      799 Views
      Y
      @PluginStudent Thank you so much! It worked! Yaroslav.
    • Y

      Can't add plugin name into cinema4d

      Watching Ignoring Scheduled Pinned Locked Moved General Talk r21
      5
      0 Votes
      5 Posts
      6k Views
      ferdinandF
      Hi, without further feedback, we will consider this thread as solved by Wednesday and flag it accordingly. Cheers, Ferdinand