PDA

View Full Version : Noob question on instancing


Teriander
12-21-2007, 10:46 PM
Im trying to create a button that will create fill lights in my scene, but I can't figure out how to get the first created light to become instanced. What am I doing wrong?


button butOmniFill "Create Fill Omni Lights" pos:[90, 120]

on butOmniFill pressed do
(
Omni = Omnilight()
Omni1 = Omni pos:[30000,30000,5000] isSelected:off
Omni2 = instance Omni
Omni2 = Omni2 pos:[-30000,30000,10] isSelected:on

)


I solved it myself! Thanks :) Sorry for post, can't delete :(

CGTalk Moderation
12-21-2007, 10:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.