hi,bro.i have a question for visible. I wrote a python program to make blocks invisible.But after reset the simulation, their properties do not become visible, they remain invisible.How to make them visible after reset?
16/5000
You can call the function ‘OnReset’
1 Like
Thanks,Your answer solved my trouble
so,How do I make them invisible together
Hey jiangleng,
You could make a “master” script inside another component. Go to modelling tab and create a new component.
Next give the component a property called “Simulation node list”
Click on the newly created property and start adding those components to the list.
Now you have those components within a list. Next we can create a Python script to the “new component” and loop through the list.
Then we can use boom’s code to do the same thing.
This code snippet is inside the “new component”
2 Likes
thanks!!!!!!!!!!!!!!!!