Notifications
Clear all

[Closed] Default scene light transform

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?

4 Replies

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

1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

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

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

1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

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.