Visible don't reset after reset the simulation

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’
image

1 Like

Thanks,Your answer solved my trouble

image

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.
image

Next give the component a property called “Simulation node list”

image

Click on the newly created property and start adding those components to the list.

image
image

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.

image
This code snippet is inside the “new component”

2 Likes

thanks!!!!!!!!!!!!!!!!