Spline
Rail
花键轨
Basic 基础Coord.Object 对象
Spline Rail
花键轨
Spline Rail deforms polygon objects using up to four splines that define the target shape.
样条轨道使用多达四个样条来变形多边形对象,这些样条定义了目标形状。
Before Spline Rail deformation 花键轨前变形
After Spline Rail deformation 后花键钢轨变形
Example 1
例子一
Suppose that you want to squeeze a cube through a funnel that is represented by two splines. To do this,
proceed as follows:
假设你想通过一个由两个样条表示的漏斗来挤压一个立方体。要做到这一点,应按照以下步骤进行:
- Choose Create / Object / Cube to create a cube. 选择 Create/Object/Cube 创建多维数据集
- In the 在Attribute
Manager 属性管理器, change segments X, Y and Z to ,将片段 x,y 和 z 更改为10. Changing the segments
will enable us to create a smoother deformation. .更改片段将使我们能够创建一个更平滑的变形
- In the viewport, change to the XY view (by
default, select View / View 4). This gives us an orthographic view of the XY plane. 在视图中,切换到 XY 视图(默认情况下,选择 View/View 4)。这给了我们 XY 平面的正投影图
- Choose
Create / Spline / Sketch to create a freehand spline. 选择 Create/Spline/Sketch 创建手绘样条
- Click to create the first point in the
viewport. Click and make a second point to create a diagonal line as shown in the picture
above. 单击此处可创建视区中的第一个点。单击并制作第二个点以创建如上图所示的对角线
- In the 在Attribute Manager 属性管理器, disable Close Spline on the
Object page. This is very important. ,在对象页上禁用闭合样条。这是非常重要的
- Double click on the spline’s name in the 双击样条的名称Object Manager 对象管理器 and name it Left. 并命名为左
- Select the Left spline in the 中选择左样条Object Manager 对象管理器 and duplicate it by pressing Ctrl+C (Windows) or Cmd/Ctrl+C (macOS),
then Ctrl+V (Windows) or Cmd/Ctrl+V (macOS). This will create a new spline named 然后按 Ctrl + c (Windows)或 cmd/Ctrl + c (macOS)复制它,然后按 Ctrl + v (Windows)或 cmd/Ctrl + v (macOS)。这将创建一个名为Left.1 左。1.
- Select the Model tool and in the Coordinates Manager
change 选择模型工具并在坐标管理器中进行更改H to 到180. Your splines should now look
like those in the picture below. .你的样条现在应该看起来像下面图片中的样子
- In the 在Object Manager 对象管理器,
double-click the 、双击Left.1 左。1 spline’s name and name it 样条的名字和名字Right 对.
- Choose Create / Object / Null to create a Null
object. 选择 Create/Object/Null 创建一个 Null 对象
- In the Coordinates Manager, change 在坐标管理器中,更改P to 到90. This rotates the Null object so that its Z axis now points in the same
direction as the Y axis of the cube. We will use this Null object’s coordinates as the reference for our
Spline Rail deformer in a moment. .这会使 Null 对象旋转,使其 z 轴现在与立方体的 y 轴指向相同的方向。我们稍后将使用这个 Null 对象的坐标作为样条轨变形器的参考
- Create a Spline Rail object and adjust its position and
scale to match that of the cube. In the 创建样条 Rail 对象并调整其位置和比例以匹配立方体的位置和比例。在Attribute Manager 属性管理器, drag the splines and
the reference object into the respective fields ( ,将样条和引用对象拖动到各自的字段中(Z Spline left/right 左/右 z 样条 and 及Reference 参考资料). This state is shown in image 3 above. )。这种状态如上图3所示
Finally, make the deformer a
Child object of the cube. 最后,将 deformer 设置为立方体的子对象
- Select the Spline Rail and move it along its Y axis. The cube will be
deformed by the two splines as you move the deformer. Switch to the 3D view if you wish to see the effect in
3D. 选择样条轨并沿其 y 轴移动。当你移动变形器时,立方体会被两个样条变形。如果你想看到3D 效果,切换到3D 视图
As with all deformers, the Spline Rail can be animated using Cinema 4D’s animation tools. 与所有的变形,样条铁路可以动画使用Cinema 4D 的动画工具
Example 2
例子二
You can also use the Spline Rail object to make
surfaces follow splines. This works even better with MoGraph’s 您还可以使用样条 Rail 对象使表面遵循样条。这对 MoGraph 的工作效果更好Spline Wrap 花键包装.