grichter opened this issue on Dec 08, 2012 · 7 posts
grichter posted Sat, 08 December 2012 at 7:45 PM
You can add a light set (lt2) a scene and it acts like a normal light set and replaces all lights with the new light set with this simple code...
import os
import poser
scene = poser.Scene()
def loadLibraryFile():
path = "/runtime/Libraries/Collections/My Lights/Revised.lt2"
try:
scene.LoadLibraryLight(path)
except:
pass
loadLibraryFile()
But if you want to say add a pre-defined spot where you have set the shadows, etc and location of where it loads, using the above method it over writes all the lights instead of just adding one more spot to the scene.
Is there a simple scene method to add the lights vs apply the lights like the single and double check boxes in the poser library pallet?
I looked thru the methods manual and can't locate something that looks like it does the trick and I need to know if I skipped over something by not understanding its function.
Yes I know you can write a script to create a light, but it would be much easier if I could use the scene method up at the top and bring in a pre-made light set saved off the the library.
Thanks in advance for any help or suggestions
Gary
Gary
"Those who lose themselves in a passion lose less than those who lose their passion"