热烈欢迎新会员,新手报到帖2018, CG++10年了!场景助手3.0下载飞浪脚本零起点入门
返回列表 发帖

shapemerge可以不可以用脚本来实现?

Constructor

ShapeMerge compound objects are not constructable by MAXScript.

Properties

<ShapeMerge>.Operation_Type Integer default: 1

Set the shapemerge operation type:

0- Cookie Cutter (Cuts the shape out of the mesh object抯 surface.)

1- Merge (Merges the shape with the surface of the mesh object.)

<ShapeMerge>.Remove_Interior_Exterior Integer default: 0

Reverses the effect of Cookie Cutter or Merge. With the Cookie Cutter option, the effect is obvious. When Invert is off, the shape is a hole in the mesh object. When Invert is on, the shape is solid and the mesh is missing. When you抮e using Merge, Invert reverses the sub-object mesh selection.

0- Invert OFF

1- Invert ON

<ShapeMerge>.Output_Sub_Mesh_Selection Integer default: 0

Sets which selection level is output:

0- None (Outputs the full object.)

1- Vertex (Outputs the vertices defined by the spline of the shape.)

2- Edge (Outputs the edge of the merged shape.)

3- Face (Outputs the faces within the merged shape.)

The following properties are available only after the ShapeMerge object has been created. The values shown for the properties are those for a ShapeMerge object created from a sphere and a circle. SubAnims similar to the Circle01 SubAnim would be created if additions operands were used. The operand transforms are in the local coordinate system of the ShapeMerge object.

<ShapeMerge>.mesh__sphere01 SubAnim default: SubAnim:Mesh__Sphere01

<ShapeMerge>.mesh_transform SubAnim default: SubAnim:Mesh_Transform

<ShapeMerge>.shape_1__circle01 SubAnim default: SubAnim:Shape_1__Circle01

<ShapeMerge>.shape_1_transform SubAnim default: SubAnim:Shape_1_Transform

帮助文件就只有这几句! 是不是就不能实现了呢?

分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友

文档第二行就说明这个插件不能被maxscript引用了

TOP

Boolean

本帖最后由 longshaohua 于 2018-6-28 19:57 编辑

ShapeMerge compound objects are not constructable by MAXScript.
前面这句话说了ShapeMerge不可以。要模拟这功能的话能不能用boolean的cut方式呢?或者用polyop的cut不知道行不行,先计算出shape上的步幅点的射线与物体的所有交点,再跟点来cut。这样似乎太复杂了...呵呵

TOP

返回列表