Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: LionelC on 2023-03-02, 21:30:30
-
Hi,
How can the option "Include lights not assigned to other LightSelect elements" be ticked using maxscript?
-
the property is called ".nodeSource"
example:
LightSelectRE = getclassinstances CShading_LightSelect
LightSelectRE.nodeSource = 1
-
Thank you Clemens.
Appreciate it.
How do you find that kind of information?
I wasn't able to find that information on the doc or using 3ds max script listener.
-
I usually run the "showClass" command with an additional "*.*" to get all the properties of that class.
for example:
showClass "CShading_LightSelect*.*"
-
Thank you, that's very helpful.
-
How can I change these settings?
-
did you try the "showClass" command like I wrote in my previous post?
-
Yes, I tried and found these parameters with code: showclass "Cmasking_mask*.*". Thanks for your previous reply.
In any way at what object they should be changed. Is this the Camera? Renderer?, .. Please help, I can't find what I'm looking for.
<????>.mode = 2 ?
Can you get example.
-
well, you have to get the specific render element you want to change.
there are different ways to do that but for example:
rem = maxOps.GetCurRenderElementMgr()
myRe = rem.GetRenderElement 0 -- get your renderelement here. The 0 represents the position of the renderelement in the list and starts with 0 for the first one.
myRe.mode = 0
myRe.nodesMonoOn = true
myRe.nodesMono = #($Box001,$Box002) -- inside the array are the objects you want add to the included list.
hope that helps
-
This works great. Thanks a lot!