Xpresso (i.e. blueprint graph)

Interactive Squish effect

Create a Capsule → Orientaion : -X
In Bend → Mesh → Add a Cube (to let the mesh deform the object)
Roughly set the cube size and segments as below:
image.png
Put Cube as top layer, then a Mesh layer child under Capsule (i.e from top to bottom layer: Cube>Capsule>Mesh)→ Drag the Cube in Mesh menu (Cage box) → Intiatize
image.png
Select Cube layer → Make it editable (C) → Back to Mesh layer → Object → Initialize again
Choose live selection → Point/Edge (L bar), , grab all bottom points of the Cube, now pushing up will have the Squish effect:
image.png
Remove the Cube from Cage box of Mesh menu (or else the cube can’’t be moved) → Resize and move the cube so that it overlap only bottom half of the Capsule → Put back the cube layer in Cage box → Intialize again
image.png
Create Null, parent over all layers (cube, capsule, mesh)

Giving Bounce effect on the Ground:
On Null layer → R click, Programming Tags → XPresso (window pop)
Rename Cube layer as Deformer Geometry, drag it in XPresso Editor graph
Go to X-Pool (next to X-Manager), type Point → Drag the Point in the graph
image.png
Click red corner of Deformer Geometry → Object → Connect it Ouput to Point’’s Input Object
image.png
Type Iteration (tell how many times to iterate through the object) at search box this time, drag it to the graph → connect Point Count Output to Iteration End Input
Duplicate Point node as a loop, connect all as follow:
image.png
Type Vector2Reals and Reals2Vector, drag to graph and connect to 2nd node of Point Position and connect as follow (Make X and Z constant, no value affected):
image.png
To make Y value variable, Type Compare node, set Fuction in its menu as <
image.png
Type Condition, drag and finalise all connection as follow:
image.png
Duplicate once more Point node, put it at the end and click blue corner to add Point Position → Connect as follow (Object to Deformer Geometry; Point Index to Iteration, Point Position to REals2Vector
image.png
Go to Mesh layer and initialize Cages Object properties.
Now, when the object move down to 0, it goes to flatten itself out

Create reference object (original how it looks) for deformed object to interact (9:30) :
Duplicate Deformer Geometry layer, rename as Deformer Geometry Originally, place it above Null
In Deformer Geometry layer → Rigging Tag → Pose Morph → in its Mixing menu, Tick Points (Tag Properties box appear in menu)
Screenshot 2021-10-07 at 12.39.09 PM.png
Drag Deformer Geometry Originally in Pose Morph box, place between Base Pose and Pose.0, click yes when box pump up asking if place as absolute or relative target:
Screenshot 2021-10-07 at 12.40.39 PM.png
Create a new Null, put at the most bottom layer, move the Xpresso tag from old Null away to the new Null (at bottom layer)

Suppose now the squish effect works that can apply on the object (sneaker), but doesn’t work to me
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.