ResizeBox_Relative


Resizes a box to relatively defined dimensions.

Syntax

C++
Python
 
def ResizeBox_Relative(
	inBox: Box,
	/,
	*,
	inAnchor: Anchor2D = Anchor2D.TopLeft,
	inHorizontalScale: float = 1.0,
	inVerticalScale: float = 1.0
)
-> 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 inHorizontalScale float 0.0 - 1.0 Scale factor of the horizontal resize
Input value inVerticalScale float 0.0 - 1.0 Scale factor of the vertical resize
Output value outBox Box Resized box