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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. GillesKontrol
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    GillesKontrol

    @GillesKontrol

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

    GillesKontrol Unfollow Follow

    Latest posts made by GillesKontrol

    • Merging all polygon selectiontags per material on an object

      Hello,

      I can loop over all the materials on an object and store their respective objecttags, but I can't find any example or information on how to merge a list of selectiontags together via python and then assign those to their respective materials again. It doesn't seem super hard to do but I just can't find an example of someone doing something similar.

      My endgoal would be to basically simplify this so it merges all the selectiontags per material for each object so I don't have to do this all by hand for thousands of objects:
      34704837-0f5d-4b64-b629-125355c73970-image.png

      Any help would be greatly appreciated.

      Thanks!

      posted in Cinema 4D SDK python 2024 windows
      G
      GillesKontrol
    • RE: How to use external libraries inside of a plugin

      Thankyou! Noted!

      posted in Cinema 4D SDK
      G
      GillesKontrol
    • RE: How to use external libraries inside of a plugin

      Nevermind, i'm an idiot. All I had to do was place the lib in a folder in the plugin. Solved! 😄

      posted in Cinema 4D SDK
      G
      GillesKontrol
    • How to use external libraries inside of a plugin

      Hello!

      I've been writing a plugin that takes some information in the form of API requests (with the third party library "Requests") but I was doing my testing inside of the Python Script Manager. It works fine this way - but when I try and do the same inside a CommandData plugin it says it can't find the "Requests" library when C4D gets loaded.

      I've tried looking for this topic but I can't seem to find an anwser to it - apologies if this is a stupid question or if I just didn't look in the right place for it, as it seems something pretty basic but I can't get it to work 😄

      Any help would be much appreciated!

      Thanks

      posted in Cinema 4D SDK python
      G
      GillesKontrol
    • RE: Listening to the status of the Pictureviewer (like when Rendering Multiple Takes to Pictureviewer)

      Thankyou Ferdinand!

      It is a script for now but I will integrate it in a commandplugin so haha, bad luck on both those counts!
      Could you point me to a function or example of how I can detect a finished rendering? I might be able to check X number of times for a finished rendering and then execute the function. It's not perfect but it might do the trick for now.

      Thanks for the response, very helpful insights!

      Best regards,

      posted in Cinema 4D SDK
      G
      GillesKontrol
    • Listening to the status of the Pictureviewer (like when Rendering Multiple Takes to Pictureviewer)

      Hello,

      Is it possible to listen to when a render has been completed in the Pictureviewer? I'm using the "render takes to pictureviewer" command to export a series of ORBX files. Once they're done exporting I would like run a function.

      I can't use the batchrenderer because I'm exporting multiple ORBX files by "rendering" multiple takes to the PictureViewer. This is the only way currently to automate this process - in the batchrender it keeps getting stopped by a dialogbox that "saving the file" needs to be enabled (but it actually needs to be oiff, because I do not want to render anything, just export) and then the "render" aborts.

      Thanks in any case!

      posted in Cinema 4D SDK python project tool
      G
      GillesKontrol
    • RE: Loading in a framesequence to the pictureviewer (EXRs)

      Loud and clear! Thankyou!

      posted in Cinema 4D SDK
      G
      GillesKontrol
    • RE: Loading in a framesequence to the pictureviewer (EXRs)

      Oh? I was talking about when going to the PV and opening an EXR file as part of a sequence (via File > Open Image) you get this dialog:

      https://i.imgur.com/RWWOsSJ.jpg

      That's what I'm trying to replicate.

      posted in Cinema 4D SDK
      G
      GillesKontrol
    • Loading in a framesequence to the pictureviewer (EXRs)

      Hello,

      I've managed to get a framesequence loaded into the pictureviewer via python but they're all loaded in as individual frames and not as an actual sequence so the timeline controls are not visible and you can't play the sequence. I can't seem to find any options of this in the documentation, but perhaps I'm just don't know the term of the function to do it. Could anyone point me in the right direction?

      Thanks

      posted in Cinema 4D SDK python
      G
      GillesKontrol
    • RE: Websockets / Threading

      Ended up solving it by doing it with regular sockets and a timer. Also figured out why and how to make a standalone plugin panel - though it took me a lot of time and effort. Your documentation could really benefit from some step by step examples as searching for things you don't know the names of or why you even need them is next to impossible.

      posted in Cinema 4D SDK
      G
      GillesKontrol