base pivot and use pivot point center

hello, i need someone to help me,
I need to bind a script that binds the CenterPivot to the base of the object and at the same time change the mode to "Use Pivot Point Center".

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	CenterPivot selection
	selection.pivot.z = selection.min.z
	toolMode.pivotCenter()
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.