Skip to main content
100%

Gist 75d667d57672bebeec871c6adb853983

✓ Published0🌍 Public
Aandybak
Last edited Jul 16, 2021
Created on Jul 16, 2021

This example demonstrates how a 3D model is imported and placed into a scene at a specified position and rotation. The code uses the SketchMemoryScript and WidgetManager APIs to create a new model widget, load a file from the media library, and associate it with a TrTransform containing the given translation and rotation. It then shows the widget, disables dormant widget mode, and clears any current selection. The rendering approach relies on the Model class with its LoadModel method, while the CreateWidgetCommand handles undoable scene changes.

AI-generated description

Similar vizzes