DrawingElementPropertiesUpdate
Used to mutate the properties of one or drawing elements.
let model = await SketchUpApi.getActiveModel();model.performOperation((op) => { const faces = await model.entities.get({filterBy:{types:['Face']}}); const hide = {hidden: true}; faces.forEach((face) => { op.drawingElementSetProperties(face, hide); });}, 'Hide Faces');Operation.drawingElementSetProperties
Properties
Section titled “Properties”castsShadows?
Section titled “castsShadows?”
optionalcastsShadows?:boolean
When not supplied the castsShadows flag is left unchanged. Other-wise the castsShadows flag is set to the supplied value.
hidden?
Section titled “hidden?”
optionalhidden?:boolean
When not supplied the hidden flag is left unchanged. Other-wise the hidden flag is set to the supplied value.
receivesShadows?
Section titled “receivesShadows?”
optionalreceivesShadows?:boolean
When not supplied the receivesShadows flag is left unchanged. Other-wise the receivesShadows flag is set to the supplied value.