Methods
The rhinoartisan-web-3d web component exposes the following methods that can be called directly on the element.
📋 Method Categories
Materials
setMaterialByName(materialName)
setMaterialByName(materialName)setMaterialByUuidAndName(uuid, materialName)
setMaterialByUuidAndName(uuid, materialName)Items
getItems()
getItems()getSelectedItems()
getSelectedItems()getItemByUuid(uuid)
getItemByUuid(uuid)Camera & Controls
zoomExtents()
zoomExtents()zoomIn()
zoomIn()zoomOut()
zoomOut()setAutorotate(enabled)
setAutorotate(enabled)getCameraView()
getCameraView()setCameraView({ position, target, fov })
setCameraView({ position, target, fov })Capture
getScreenshot(format, quality, width, height)
getScreenshot(format, quality, width, height)downloadImage(filename)
downloadImage(filename)startVideoRecording(duration)
startVideoRecording(duration)stopVideoRecording()
stopVideoRecording()Selection
setObjectSelectionEnabled(enabled)
setObjectSelectionEnabled(enabled)Model Loading & Cache
setModelUrl(url)
setModelUrl(url)preloadModel(url)
preloadModel(url)clearModelCache(url)
clearModelCache(url)Presets
loadPreset(presetName)
loadPreset(presetName)getAvailablePresets()
getAvailablePresets()getCurrentPreset()
getCurrentPreset()Configuration
exportConfiguration()
exportConfiguration()importConfiguration(config)
importConfiguration(config)downloadConfiguration(filename)
downloadConfiguration(filename)Material Customization
updateMaterialProperties(uuid, properties)
updateMaterialProperties(uuid, properties)getMaterialProperties(uuid)
getMaterialProperties(uuid)saveCustomMaterial(name, properties)
saveCustomMaterial(name, properties)getCustomMaterials()
getCustomMaterials()deleteCustomMaterial(name)
deleteCustomMaterial(name)💡 Usage Tips
Accessing Methods
Method Chaining
Error Handling
🔗 See Also
Last updated
Was this helpful?