Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Yaroslav
    3. Topics
    Y
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 18
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by Yaroslav

    • Y

      python plugin in debugging mode

      Cinema 4D SDK
      • • • Yaroslav
      2
      0
      Votes
      2
      Posts
      756
      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

      Cinema 4D SDK
      • c++ sdk • • Yaroslav
      9
      0
      Votes
      9
      Posts
      3.6k
      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

      Cinema 4D SDK
      • • • Yaroslav
      8
      0
      Votes
      8
      Posts
      1.8k
      Views

      Y

      @ferdinand
      Oh, thanks!
      Quite a nice idea!

    • Y

      Get Spline Data from document->GetActiveObject();

      Cinema 4D SDK
      • c++ • • Yaroslav
      8
      0
      Votes
      8
      Posts
      1.5k
      Views

      Y

      @m_magalhaes

      Thank you, Manuel!

    • Y

      compiling for r20 new solution

      Cinema 4D SDK
      • • • Yaroslav
      4
      0
      Votes
      4
      Posts
      730
      Views

      Y

      @PluginStudent

      Thank you so much! It worked!
      Yaroslav.

    • Y

      Can't add plugin name into cinema4d

      General Talk
      • r21 • • Yaroslav
      5
      0
      Votes
      5
      Posts
      5.8k
      Views

      ferdinandF

      Hi,

      without further feedback, we will consider this thread as solved by Wednesday and flag it accordingly.

      Cheers,
      Ferdinand