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

    VolumeData

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 155 Views
    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 Offline
      Helper
      last edited by

      On 30/07/2014 at 12:55, xxxxxxxx wrote:

      I am trying to find out the color and intensity of light at a point in 3d space.   I found a function (IlluminanceAnyPoint) in the python documentation that looks like it does  what I want. How do I pass it a 3d point and get the illumination value back?
      `
      Here's my code:

      import c4d
      import c4d.modules.render as render

      def main() : 
          b = render.VolumeData.IlluminanceAnyPoint([4,3,2],0,0)
          print b
          return True

      end

      I get an error that says "IlluminanceAnyPoint requires a c4d.modules.render.VolumeData' object but received a 'list'"

      How can I pass it a point's location vector and get back a value?
      `

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