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. Ryan_Territory
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Ryan_Territory

    @Ryan_Territory

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Ryan_Territory Unfollow Follow

    Latest posts made by Ryan_Territory

    • Setting texture path to a RS Domelight with python

      Hey!

      So for context I'm busy with my first cinema integration plugin, its a multi DCC app that i already have working with Houdini/Maya.

      I'm trying to create a dome light, adjust some parameters and link the hdr texture file to the texture input.

      Seem to be having a hard time trying to find an API reference or examples of this being done and script log doesn't seem to help much with this as it only responds with the command 'c4d.REDSHIFT_LIGHT_DOME_TEX0' which cant take a string.

      If anyone can help point me in the right direction would be much appreciated.

      Iv stripped a script down to absolutely bare bones for an example:

      import c4d
      
      
      def main():
          
          doc = c4d.documents.GetActiveDocument()
          hdri_path = ''
          
          # Create Light
          light = c4d.BaseObject(1036751)
             
          # Set the attributes
          light[c4d.REDSHIFT_LIGHT_TYPE] = 4
          
          # Set Texture
          #light[c4d.REDSHIFT_LIGHT_DOME_TEX0] = hdri_path
          #c4d.REDSHIFT_LIGHT_DOME_TEX0
       
          # Insert the light into the scene
          doc.InsertObject(light)
      
      
      if __name__=='__main__':
          main()
          c4d.EventAdd()
      
      posted in Cinema 4D SDK r25 python
      R
      Ryan_Territory