SetPartOpacity Function
Manages the opacity (transparency) of given parts from a 3D model edited in an active 3D editing session by a given opacity level.
SetPartOpacity(parts: [[[EvItem|canvas-envision-document-items.html#part-items]]][], opacity: number): Promise<void>
Parameters
parts: EvItem[]An array of Part item objects, one or more given parts of a 3D model currently edited in an active 3D editing session whose opacity should be changed by a given level.
opacity: numberA number, a given level of opacity from
0to100that defines how opaque the given parts should be:0: fully transparent.100: fully opaque.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the opacity of the given parts from the 3D model edited in the active 3D editing session has been successfully set to the given level.
Discussion
The function will throw an error if the 3D editing mode has not been activated.
25 April 2025