BPY plus – transform module

A BPY plus module for working with 3D object transformations.

Transform class

apply(obj):

Apply all transforms to the object

Parameters:

obj: object apply transforms to


matrix_scale(factor: float, axis: tuple = (1, 1, 1), size: int = 4) -> ‘Matrix’:

Calculating the scale matrix.

Parameters:

factor: scale factor.

axis: XYZ-axis to apply the scale. Can be combined.

size: the size of the resulting matrix.

Returns:

Scale matrix

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments