View Single Post
  #1  
Old 04-03-2012, 10:45 AM
kovitch kovitch is offline
Member
 
Join Date: Sep 2010
Posts: 30
Copy light object

Hi,

I'am trying to copy light objects by using the following code:

Code:
general_light= viz.addLight()
general_light.position(11.496,4.195,2.63)
general_light.direction(0,-1,0)
general_light.spread(180)
general_light.intensity(1)
general_light.spotexponent(3)

light_1 = general_light.copy()
light_1.setPosition(11.496,4.195,5.63)
light_2 = general_light.copy()
light_2.setPosition(11.496,4.195,7.289)
...and I get the error:
** ERROR: Failed to copy node
** ERROR: Failed to copy node

Is there any special way to copy a light object?

Best regards,

Alex.
Reply With Quote