iphone-fold
devicesset 4× in templates and rigs
A book-style foldable phone: two live screens (inner and cover) and a hinge swung by its `state` channel.
iphone-fold#s1-fold(position="0 0 0" rotation="0 15 0")
Attributes
position"x y z"4×rotation"x y z"4×anchortexte.g. bottom1×look_attextTurns the node every frame so its face (+z; a device's screen, a laptop's front) points at a target: a point `x y z` (mm, world), `#node-id` (that node, live) or `camera` (the lens, live). Its `rotation` and rotation keys are an offset on top of the aim.0×uptextWith `look_at`: the world direction kept as the node's up, `x y z` (default `0 1 0`).0×Where it goes
Examples
iphone-fold#s1-foldin devices/iphone-foldOpen and play →iphone-fold#s1-fold(position="0 0 0" rotation="0 15 0")
state
0 closed
3.0 opening 0.2 hold
ui3d#s1-cover(overlay=cover lift=0.08 width=78 height=113)
template(ref=t-fold-cover)
ui3d#s1-inner(overlay=screen lift=0.08 width=158 height=111)
template(ref=t-fold-inner)
iphone-fold#s2-foldin devices/iphone-foldOpen and play →iphone-fold#s2-fold(position="0 0 0" rotation="0 -40 0")
explode
0 0
1.2 0
3.8 easeInOutCubic 1
6.4 1
9.0 easeInOutCubic 0
ui3d#s2-inner(overlay=screen lift=0.08 width=158 height=111)
template(ref=t-fold-inner)
ui3d#s2-cover(overlay=cover lift=0.08 width=78 height=113)
template(ref=t-fold-cover)
iphone-fold#s3-foldin devices/iphone-foldOpen and play →iphone-fold#s3-fold(position="0 0 0" rotation="0 15 0")
state
0 open
1.2 closing 0.2 hold
ui3d#s3-inner(overlay=screen lift=0.08 width=158 height=111)
template(ref=t-fold-inner)
ui3d#s3-cover(overlay=cover lift=0.08 width=78 height=113)
template(ref=t-fold-cover)
Used in
Templates that write iphone-fold; each opens at its first use.
