cmo/attribute_derive

The mo/attribute_derive** command is used to give one mesh object (at least) the same set of attributes as another mesh object. This is useful, for example, for merging two mesh objects. Specifically, it looks at the set of attributes present in the source mesh, compares it to the set of attributes in the sink mesh, and adds to the sink mesh any attributes that it is missing.

The command needs a target mesh to be designated. If no source mesh is given, it will use the current mesh object.

FORMAT:

mo/attribute_derive** / sink_mo_name /  [ src_mo_name ]

EXAMPLES:

[mo** /attribute_derive/cmo_sink/cmo_src]{.style1 [mo** /attribute_derive/empty_cmo]{.style1

cmo/attribute_union

The mo/attribute_union** command is used to give two mesh objects the same set of attributes as each other. This is useful, for example, for merging two mesh objects. Specifically, it looks at the set of attributes present in each mesh, compares it to the set of attributes in the other mesh, and makes it so each mesh posesses the union of the two sets of attributes. In particular, this is just a wrapper for the above call - it executes [attribute_derive]{style=”font-weight: bold;” twice, once in each direction.

The command needs both meshes to be designated.

FORMAT:

mo/attribute_union** / sink_mo_name /  src_mo_name

EXAMPLES:

[mo** /attribute_derive/cmo2/cmo1]{.style1 []{.style1