ProtoInstance

From ActiveWiki
Revision as of 14:44, 17 February 2010 by Talisan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

    ProtoInstance name

Description

This command instantiates the given prototype. This adds copies of all the polygons in the prototype into the current clump under construction. Note that this process does not create a new child clump.

See ProtoBegin for more information.

Arguments

name is the name of the prototype, as declared in a previous ProtoBegin command.

Example

ProtoInstance model1

Model example utilizing multiple protoinstances.

 modelbegin
  protobegin model1
   # model code in here
  protoend
  protobegin model2
   # model code in here
  protoend
  protobegin model3
   # model code in here
  protoend
  clumpbegin
   protoinstance model1
   protoinstance model2
   protoinstance model3
  clumpend
 modelend