Part Magic
Already talked about:
- What a part is in "scene.html"
- Accessing properties & members of a part, in expressions
- Adding methods and types to a part in methods
- Parts as resources ...
Now we need to talk about 2-way binding, part selection via matchers, ...
<<<<<<<<<<<<<<< OLD STUFF >>>>>>>>>>>>>>>>>>>
Nearly every element in a 3-D scene is (deep down inside) a Part, simply because such elements are pieces within a larger hierarchical structure (the scene). In addition to the hierarchical structure, each Part offers up the following information about itself:
- Attributes, as a Dict, including its name and parent.
- Sub-parts, as an ordered List.
- Unique methods which can act on the part, beyond those provided by its type
- Mixin types??, offering additional methods which can act on the part
sun = Lightbulb[ name: 'Sun' parent: $ pos: Xyz[0,0,0] color: Rgba[1,1,1] on:> #turn it on