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

    Posts made by anamate

    • RE: Multi threading in C4D python

      thanks Ferdinand this cleared things up for me

      posted in Cinema 4D SDK
      A
      anamate
    • Multi threading in C4D python

      hi there,
      I managed to get a script working that can select and hide polygons that are outside of the camera frustrum as well as polygons that are behind other polys along a camera path. I’m using the ray collider to detect what poly face has been hit from the camera's position and then selecting this with the polygon selection tag.
      I am now trying to use threading in python to split the ray hits calculations between my computer’s threads so that I can speed up the script’s running time. Having some issues at the moment with getting the script to show the selected polys. It works when threading is False, but not sure what I am doing wrong in my setup for when threading is true, any help would be much appreciated

      attached is a test file and the python script which runs in the script manager220608_occlusion_frustrum_threaded02.py
      A220608_model with path 2.c4d

      posted in Cinema 4D SDK python s24
      A
      anamate