setScale

Sets the scale of an object base on given x, y, z values.

setScale(
	objectName: string,
	scale: Vector3,
): Promise<void>
Parameters
Description
Type

objectName

Specifies what object do we want to retrieve the information from.

string

scale

x, y, z values of the new scale.

Usage:

await modelApi.setScale('Box', {
	x: 1.5, 
	y: 2, 
	z: 1
});

Last updated