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

    Get a pointer to the object being rendered

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 519 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 27/02/2015 at 08:59, xxxxxxxx wrote:

      If I code a shader in python, is there any way to get a pointer to the object that is being calculated?
      Or is this only possible in C++?

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

        On 02/03/2015 at 07:49, xxxxxxxx wrote:

        Hello,

        the currently rendered RayObject is defined in the  "op" member of the VolumeData member of the given ChannelData. This property is currently only available in the C++ API. Please be aware that a shader may also be used in another context and there is may be no RayObject at all.

        Best wishes,
        Sebastian

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

          On 02/03/2015 at 12:47, xxxxxxxx wrote:

          Of course I would check for a RayObject before trying to get access to one of its members.
          But, it is only available in C++ because it is not possible to make it available in python or is it just something that will, eventually be included in python too?

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

            On 09/03/2015 at 02:32, xxxxxxxx wrote:

            Hello,

            while the Python API is continuously improved, we cannot make any statements about specific future functionality.

            Best wishes,
            Sebastian

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

              On 09/03/2015 at 04:44, xxxxxxxx wrote:

              I understand that. And I hope it really gets more powerful.
              Although I do program in C++ also, for so many stuff I prefer python as I don't have to compile again and again, even if only changing a single character of my code. And, also, I don't have to startup Windows on my Mac just to compile for Windows 😉

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