Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

No UpDate value in rollout

No UpDate value in rollout

MedalHellWay
Collaborator Collaborator
276 Views
0 Replies
Message 1 of 1

No UpDate value in rollout

MedalHellWay
Collaborator
Collaborator
Hi to everything!

I have a small problem.

I created a script that allows me to check the lights in the scene. Now I connected some spinner and values for the parameters of shades, on/ off, special effect ecc. Everything seems to work right but ...

How update to the values of my rollout with the principal rollout of the lights in max UI? I noticed changes the parameters in my rollout not create update at a second moment in the rollout UI.
Exemple: I access Omni01 with my rollout ( do not the update parameters automatically ) set up new values all threads smooth.
I select Omni02 and in my rollout do not have the update values of the new light . I change the value of the Omni02 and hips change Omni01 values!

Please help me!!

Copy and Paste the script for check the problem

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

rollout SettingLights "Quick Setting Lights" width:208 height:448
(

global chk1
local multicontroller = Bezier_Float()
local densicontroller = Bezier_Float()


GroupBox grp1 " Quick Parameters Lights" pos: width:192 height:432
checkbox chk1 "Light On/Off" pos: width:88 height:16 triState:1
GroupBox grp2 "Base Light" pos: width:176 height:56
GroupBox grp3 "Shadows" pos: width:176 height:208
checkbox chk2 "On" pos: width:48 height:16
GroupBox grp4 "Intensity/Color" pos: width:176 height:120
spinner spn2 "Multiplier " pos: width:80 height:16 range: controller:multicontroller
colorPicker cp1 "" pos: width:56 height:24 color:(color 255 242 229) modal:false
GroupBox grp21 "Affect Surface Object" pos: width:160 height:64
checkbox chk11 "Diffuse" pos: width:56 height:16 triState:1
checkbox chk12 "Specular" pos: width:64 height:16 triState:1
checkbox chk13 "Ambient" pos: width:64 height:16
spinner spn7 "Density" pos: width:88 height:16 range: controller:densicontroller
colorPicker cp6 "Color " pos: width:56 height:16 color:(color 0 0 0)
listbox list_box "" pos: width:64 height:1 items:(for o in lights collect o.name)

GroupBox grp17 "Select Shadows" pos: width:160 height:128


checkbox chk80 "Shadows Map" pos: width:100 height:16 triState:0
checkbox chk81 "Raytrace Shadow" pos: width:100 height:16 triState:0
checkbox chk82 "Advance Raytraced " pos: width:100 height:16 triState:0
checkbox chk83 "Area Shadows" pos: width:100 height:16 triState:0

--------------------------------------------------------------------------------------------



on chk1 changed thestate do
(
if chk1.state == true then

(
$.enabled = on

)
else
(
$.enabled = off

)
)
on chk2 changed thestate do
(
if chk2.state == true then

(
$.baseObject.castShadows = on

)
else
(
$.baseObject.castShadows = off

)
)
on spn2 changed val do
(
$.multiplier = spn2.value

animate off at time 0 $.multiplier =multicontroller.value
$.multiplier.controller=multicontroller
)
on cp1 changed new_col do
(
$.rgb= new_col
)
on chk11 changed thestate do
(
if chk11.state == true then

(
$.affectDiffuse = on

)
else
(
$.affectDiffuse = off

)
)
on chk12 changed thestate do
(
if chk12.state == true then

(
$.affectSpecular = on

)
else
(
$.affectSpecular = off

)
)
on chk13 changed thestate do
(
if chk13.state == true then

(
$.ambientOnly= on

)
else
(
$.ambientOnly = off

)
)
on spn7 changed val do
(
$.shadowMultiplier = spn7.value

animate off at time 0 $.shadowMultiplier =densicontroller.value
$.shadowMultiplier.controller=densicontroller
)
on cp6 changed new_col do
(
$.ShadowColor= new_col
)
on list_box selected nameIndex do
MyLightSelect = select (getNodeByName list_box.items)
--------------------------------------------------------------------------------------------




on chk80 changed State do
(

$.shadowGenerator = shadowMap()
chk80.state = on
chk81.state = off
chk82.state = off
chk83.state = off
)




on chk81 changed State do
(

$.shadowGenerator = raytraceShadow()
chk81.state = on
chk80.state = off
chk82.state = off
chk83.state = off
)



on chk82 changed State do
(
$.shadowGenerator = Adv__Ray_traced ()
chk82.state = on
chk80.state = off
chk81.state = off
chk83.state = off
)



on chk83 changed State do
(
$.shadowGenerator = Area_Shadows ()
chk83.state = on
chk80.state = off
chk81.state = off
chk82.state = off
)


)
createdialog SettingLights

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ciao
Michele71
0 Likes
277 Views
0 Replies
Replies (0)