Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

2.7 KB
Raw Blame
# Tool > Deformation's whole-Part operations (from the discussions): Polish, Relax, Smooth and Balloon, each with
# its amount beside it, one undo step each, the mask holding what it covers.
run ui_look look=classic layout=classic        # written for the Classic look and the classic palette bar and shelves
run new_sphere subdivisions=4
run deform_balloon amount=-40
click "Tool##palette.tool"
click "Deformation##tool.deformation"
expect "Deformation/Polish"
expect "##deform_balloon_amount"
hold ctrl
hover "Deformation/Polish"
expect_help "sharp edges stay"
hover "Deformation/Balloon"
expect_help "rounder volume"
hold none

# Balloon fills the Part out; undo takes it back in one step.
snapshot
click "Deformation/Balloon"
expect_status "Balloon 50"
expect_value moved_out > 0
shot balloon
key ctrl+z
expect_value moved == 0

# Smooth, Polish and Relax each move it, and each is one undo step.
click "Deformation/Smooth"
expect_status "Smooth 50"
expect_value moved > 0
key ctrl+z
expect_value moved == 0
click "Smooth keeps volume##deformation.smooth_volume"
click "Deformation/Smooth"
expect_value moved > 0
key ctrl+z
click "Deformation/Polish"
expect_status "Polish 50"
key ctrl+z
expect_value moved == 0
click "Deformation/Relax"
expect_status "Relax 50"
expect_value moved > 0
key ctrl+z

# Masked all over: nothing moves, and the status says why.
run mask_all
click "Deformation/Balloon"
expect_status "everything masked"
expect_value moved == 0
run mask_clear

# The stack (docs/design/deform-panel.md): add steps, the preview follows, Apply is one undo step, Reset takes it back.
expect "##deform_stack_add"
expect_text No steps yet
click "##deform_stack_add"
click "Stack/Bend##deform_add_Bend"
expect_status "Deform stack (1 step)"
expect_value moved > 0
expect "##deform_step_amount"
expect "##deform_step_direction"
expect "Stack/X"
shot stack-bend
click "##deform_stack_add"
click "Stack/Twist##deform_add_Twist"
expect_status "Deform stack (2 steps)"
click "Stack/Repeat"
expect_status "Deform stack (3 steps)"
click "Stack/Remove"
expect_status "Deform stack (2 steps)"
# Reset: back where it was, the list empty.
click "Stack/Reset"
expect_value moved == 0
expect_text No steps yet
# Apply keeps the preview; one undo takes the whole stack back.
click "##deform_stack_add"
click "Stack/Taper##deform_add_Taper"
click "##deform_stack_add"
click "Stack/Round##deform_add_Round"
click "Stack/Apply"
expect_value moved > 0
expect_text No steps yet
key ctrl+z
expect_value moved == 0

# Size: the Part's dimensions in scene units; typing one resizes it (Uniform: in proportion), one undo step.
expect "Size/##deform_size_x"
expect "Size/Uniform##deform_size_uniform"
run deform_size uniform=3
expect_status "Size 3"
key ctrl+z
expect_value moved == 0