📐Transforming Content
Learn how to move, scale, rotate, and add text to 3D content in FaceAR.
Moving, Scaling, and Rotating 3D Content
Using Metadata
You can use metadata to persistently transform 3D content.
If the content is too big or too small or if you'd like to move or rotate it, go back to the console and add metadata to affect its transformation. After adding or changing metadata you can instantly see the changes in the browser even while the experience is running.
The following keys are words the system uses as pre-defined metadata keys to control transformations:
Keyword | Type | Options | Effect |
x | float | Any positive or negative number. Default value is 0. | Moves the asset on the x-axis |
y | float | Any positive or negative number. Default value is 0. | Moves the asset on the y-axis |
z | float | Any positive or negative number. Default value is 0. | Moves the asset on the z-axis |
scale | float | Any positive number. Default value is 1. | Grows or shrinks the asset uniformly |
height | integer | Any positive number. | Set the height of an image asset or a video asset |
width | integer | Any positive number. | Set the width of an image asset or a video asset |
xAngle | float | Any positive or negative number. Default value is 0. | Rotates the model on the x-axis |
yAngle | float | Any positive or negative number. Default value is 0. | Rotates the model on the y-axis |
zAngle | float | Any positive or negative number. Default value is 0. | Rotates the model on the z-axis |
Remember to refresh the browser after adding metadata with FaceAR experiences for the changes to take effect.
Last updated