Is there an instruction to change the color of a conveyor type with code or on a trigger?
I am changing it setting the three corresponding nodes value but I was wandering if there is an easier way.
Is there an instruction to change the color of a conveyor type with code or on a trigger?
I am changing it setting the three corresponding nodes value but I was wandering if there is an easier way.
No, this is the easiest way I could think of:
Color col = Color.red; treenode conv = model().find("Conveyor1"); treenode typeColor = getvarnode(conv, "type").find("+/drawColor"); typeColor.subnodes[1].value = col.r; typeColor.subnodes[2].value = col.g; typeColor.subnodes[3].value = col.b;
7 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