ResizeBox


Changes the dimensions of a box.

Syntax

C++
Python
 
def ResizeBox(
	inBox: Box,
	/,
	*,
	inAnchor: Anchor2D = Anchor2D.TopLeft,
	inNewWidth: int | None = None,
	inNewHeight: int | None = None
)
-> outBox: Box

Parameters

Name Type Range Default Description
Input value inBox Box Input box
Input value inAnchor Anchor2D Anchor2D.TopLeft Point of the box which position will not change
Input value inNewWidth int | None 0 - None Target width of the box
Input value inNewHeight int | None 0 - None Target height of the box
Output value outBox Box Resized box