Disappearing/fading component

Hi,

I am extremely new to visual components and I am figuring the program out, but currently I am attempting to simulate a robot approaching another component (call it a wall) and as the robot reaches the wall ±100mm range I would like to wall to start fading/disappearing as the robot move towards it.

My question is, is this possible to model where a wall disappears in sections as the robot approaches the wall?

Thanks!

Hi Henk,

You can set the material opacity of vcComponent.Material.Opacity to something you want. Check the attached .vcmx and the “block” that acts as a wall. The code is inside the python script.

You can move the linear track and see that the wall either appears or disappears. Just keep in mind that if you have “material shaded” mode on, it doesn’t really work. Also some other things to keep in mind that this changes the material opacity globally so if you are using any other component with the same material (such as the linear track’s logo) its opacity will also change.

opacity.vcmx (39.5 KB)

br,
lefa

1 Like