In my model, I want to turn off one light, but the other lights are on. How do I control this in code .L Look forward to your help .
In my model, I want to turn off one light, but the other lights are on. How do I control this in code .L Look forward to your help .
Either switch the value of the "enabled" node (0 = off, 1 = on) or edit the value of the "intensity" to change the brightness of the light.
Object light = Model.find("AreaLight1"); light.setVariable("enabled", 0)
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved