Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated for blender 4.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions stacking-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ def axis_type_callback(self, context):
set=None
)

center_objects = BoolProperty(
center_objects : BoolProperty(
name="Center Objects on Axis",
default=True,
description="Toggle if all selected objects should be aligned on the specified axis with the active object, so that they are all in line with each other"
)

offset = FloatProperty(
offset : FloatProperty(
name="Offset",
default=0,
subtype='DISTANCE',
unit='LENGTH',
description="The distance between each stacked object"
)

shuffle_objects_seed = IntProperty(
shuffle_objects_seed : IntProperty(
name="Stacking Order Seed",
min=1,
max=10000,
Expand All @@ -80,26 +80,26 @@ def axis_type_callback(self, context):
default=2,
)

enable_rotation = BoolProperty(
enable_rotation : BoolProperty(
name="Enable Rotation",
default=True,
description="Toggle if the selected objects should get rotated"
)

rotate_base = BoolProperty(
rotate_base : BoolProperty(
name="Rotate Active Object",
default=True,
description="Toggle if the active object (yellow selection outline) gets rotated too"
)

rotation_angle_step = FloatProperty(
rotation_angle_step : FloatProperty(
name="Rotation Angle Step",
default=math.radians(90),
unit="ROTATION",
description="The angle at which objects should get randomly rotated around the rotation axis"
)

rotation_seed = IntProperty(
rotation_seed : IntProperty(
name="Rotation Seed",
min=1,
max=10000,
Expand Down