Notifications
Clear all
[Closed] Script problems with IES_Sun and mr_Sun
Jan 30, 2007 9:51 am
I’m writing an exporter for SunFlow ( http://sunflow.sourceforge.net ) and have hit on a problem with IES_Sun and mr_Sun. When I’m parsing the scene lights in the listener, everything works fine, but as soon as I do the same in my exporter, they don’t show up.
For example:
for lig in lights do
(
if (classof lig == IES_Sun) or (classof lig == mr_Sun) do
(
print lig.name
)
)
This works in Max itself, but doesn’t do anything at all when put into the script. All other lights get exported as expected.
Anyone got any ideas?
Dave