PDA

View Full Version : Switch camera type with LScript



rom
05-17-2008, 07:21 AM
Hi All
I would like to know if it is possible to switch camera types via Lscript
in order to :
1) create camera
2) switch it a surface baking camera.

evenflcw
05-17-2008, 08:50 AM
I don't know much about the new updates to lscript. But even if you could switch camera type I doubt you'd be able to adjust the type-specific settings. It's just something you can't do with LWs plugin architecture (unless plugin has a comring implementation; NT has never bothered (one exception) ). So I think you will have to resort to editing the Scene file and reloading the edited copy.

Blochi
05-21-2008, 11:46 AM
yeah, wouldn't that be awesome if all plugins would have a comring backdoor?

Which is the one that has it?

Blochi

evenflcw
05-21-2008, 05:24 PM
Item Shape. You can (finally) see it's "interface" in makebonechain.ls (LW9.x). But I believe this comring was in there from the start. I remember searching all plugin files for "comring" and it came up, and NT obviously used it for the Build Null Object dialog.

jameswillmott
05-21-2008, 05:36 PM
You can apply plugins to items with LScript, making a new camera and setting it to be a Surface Baker may be possible.

Blochi
05-21-2008, 05:41 PM
cool, thats good to know.