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()