How can we set an object or component to some level of opacity or transparency?

Hello I need to set a block transparent or partially transparent. can anyone suggest something on this?

Hi,

This snippet is directly from the help file itself and you can access the help file from the software by going to the help tab and then clicking “help”. Use the search options within the help file to find “material” or “opacity”

from vcScript import *

app = getApplication()
myMaterial = app.findMaterial("material name")
myMaterial.Opacity = 2.0
myMaterial.OpacityType = VC_MATERIAL_TRANSPARENCY_NONE

br,
Lefa