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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    get object from poly id

    SDK Help
    0
    2
    201
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/11/2003 at 06:17, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   7.0 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi!
      I am working on a shader and I want to do this:

      When i cast a ray from a point and it hits something i get the id of the polygon the ray has hit. I want to figure out if this polygon belongs to the object that I am currently shading. Is there an easy way to do this?

      Thanks
      /Filip

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 11/11/2003 at 15:46, xxxxxxxx wrote:

        No, not that I can think of. The VolumeData functions are pretty limited in C.O.F.F.E.E. In a C++ plugin you could call ID_to_Obj().

        1 Reply Last reply Reply Quote 0
        • First post
          Last post