View Full Version : Access extra info about Camera and Light

06-08-2015, 03:28 AM

Are there any other classes other than LWCameraInfo and LWLightInfo where information about cameras and lights are stored?
I'm asking because I can't find where information about camera type (perspective or ortho) is stored.
The same problem is with light where I don't see any place where the IES filename information is.
I guess there must be some other classes with such information but I can't find them.

06-08-2015, 06:00 AM
I'm not sure that information is accessible. Submit a feature request for them to expose it.

06-08-2015, 12:59 PM
These informations are internal.
Similar like if you would make custom camera plugin class, nobody would be able to read your black-box data.

But there is workaround if you really need it: save scene file, parse it, and find information in text file.

06-09-2015, 12:07 AM
Native or third party Cameras and Lights are plugins,
so you can get their name with the ItemInfo server function
(you can read the string in the scene file)
also if you can get command for Light in the Scene Editor,
there's probably a ComRing name like for Instancers,
IES name for DP Web Light is accessible this way.


06-09-2015, 02:23 AM
OK, thanks.
Looks like LW sdk is quite different of what I've saw before.

Ryan Roye
06-09-2015, 08:14 AM
OK, thanks.
Looks like LW sdk is quite different of what I've saw before.

Probably because there's like 3 of them floating around, heh. You have:

- The C++ docs
- The Lscript docs
- The Python docs (which unfortunately requires referencing the lscript docs in some cases)

But yeah, as mentioned above there are some bits of information that scripting does not give you access to, and when you run into that barrier, searching through the text of the .LWS file is the only apparent way to do it.

06-09-2015, 08:34 AM
Searching can be done quite fast since lws files are quite small.
I think I'll make small parser and use it to extract missing information.