Selecting Meshes
Say we already have meshes in our scene and we want to create a new selection for these objects. Anu supports several selection methods for doing just this.
Step 1: Select the box by name and move it
we can call selectName() from anu or a Selection to search either the whole scene or just the selection of all nodes with the given name.
//selectName(name: String | String[], scene: Scene): Selectionlet boxSelection = anu.selectName('box-name', scene)
boxSelection.positionY(2)Step 2: Select the sphere by id and move it
we can call selectID() from anu or a Selection to search either the whole scene or just the selection of all nodes with the given ID.
//selectName(name: String | String[], scene: Scene): Selectionlet sphereSelection = anu.selectId('sphere-ID', scene)
sphereSelection.positionY(-2)Files
Preparing Environment
- Installing Dependencies
- Running Local Dev Server