cmo/attribute_derive

The cmo/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:

cmo/attribute_derive / sink_mo_name [ src_mo_name ]


EXAMPLES:

cmo/attribute_derive/cmo_sink/cmo_src cmo/attribute_derive/empty_cmo

cmo/attribute_union

The cmo/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 twice, once in each direction.

The command needs both meshes to be designated.

FORMAT:

cmo/attribute_union / sink_mo_name src_mo_name


EXAMPLES:

cmo/attribute_derive/cmo2/cmo1