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. maxiokid
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    maxiokid

    @maxiokid

    0
    Reputation
    4
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    maxiokid Unfollow Follow

    Latest posts made by maxiokid

    • How to run a videoPost plug-in when user changes the scene?

      Hello,

      I'm upgrading a videoPostData plug-in to the newest SDK version.

      With R22, my plug-in Execute method was called each time the user changed the scene (move a mesh, play timeline, ...).

      With 2023.2.2 and with the same code the Execute is only called after a render.

      RENDERRESULT MyPlugin::Execute(BaseVideoPost* node, VideoPostStruct* vps)
      {
          ApplicationOutput("I want to be called at each editor-window change");
          if( vps->vp == VIDEOPOSTCALL::RENDER && !vps->open && *vps->error == RENDERRESULT::OK )
          {
              VPBuffer *rgba = vps->render->GetBuffer(VPBUFFER_RGBA, NOTOK);
              // ...
          }
          return RENDERRESULT::OK;
      }
      

      How can I restore this behavior with the new SDK?

      As reference, the behaviour I'm looking for is the same as the current "Sketch and Toon" effect when you enable "ViewportDisplay/Show Lines" in the effect settings.

      macos 13.4.1
      C4D 2023.2.2
      C++ SDK

      Thanks for your help

      posted in Cinema 4D SDK
      M
      maxiokid
    • RE: How to apply PostEffect to Viewport in realtime?

      Thank you for the reply. I'll create a new topic

      posted in Cinema 4D SDK
      M
      maxiokid
    • How to apply PostEffect to Viewport in realtime?

      Hi community!

      I'm upgrading a plug-in to apply a post effect in realtime to the viewport. The plug-in was working until R23, and now doesn't work realtime in the viewport (no code change).

      I'm using the vpinvertimage example as base.

      So far my only finding is without this line the post effect won't be rendered in realtime.

      https://github.com/PluginCafe/cinema4d_cpp_sdk_extended/blob/e23f0f94b45bca4cf14ea4aff2f9fdc07aa8c00e/plugins/cinema4dsdk/source/videopost/vpinvertimage.cpp#L91

      However I can't make sense of it since the viewportId "invert" doesn't appear anywhere else in the code, and I couldn't find any other differences between this effect and the other examples that doesn't get rendered realtime.

      Any ideas?

      Thank you for your help

      posted in Cinema 4D SDK
      M
      maxiokid