PDA

View Full Version : Default scene light transform


denisT
08-20-2010, 03:57 PM
Is there any easy way to get default light transform in the current view?
The default light is constrained to view... Is any way to change the initial (default, current) settings?

MiranDMC
08-20-2010, 05:35 PM
It looks like light is attached to camera (in single light mode)

EDIT
You just say that :rolleyes:
So, code that returns transform matrix of current viewport
viewport.getTM()

In the options you can enable second default viewport light.

But I guess you need to mess arund it via maxscript.

Maybe create your own lights and make it invisible in scene.
There was way to hide objects for user. They no appears in scene or object selector, but exists and are controllable form maxscript.
I can't remember name of this function.

EDIT
Perhaps the thing I was talking about is an invisible parameter in the Scripted Plug-ins

denisT
08-20-2010, 06:19 PM
It looks like light is attached to camera (in single light mode)...


that's true. The first default light constrained to active camera but with some offset. I need to know this offset.

PiXeL_MoNKeY
08-20-2010, 07:22 PM
Have you tried creating a camera to match the view and the creating the viewport lights from the Create Menu?

NOTE: You must have your viewport set to Default Lighting: 2 Light setup, then you can use Create > Lights > Standard Lights > Add Default Scene Lights.

-Eric

denisT
08-20-2010, 08:04 PM
Have you tried creating a camera to match the view and the creating the viewport lights from the Create Menu?

NOTE: You must have your viewport set to Default Lighting: 2 Light setup, then you can use Create > Lights > Standard Lights > Add Default Scene Lights.

-Eric

the max creates omni lights as default scene lights. But indeed the default light is a directional light that parented to the active camera. And as I see the camera and the default light directions are slightly but different. I just need to know this difference.

CGTalk Moderation
08-20-2010, 08:04 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.