Network Help¶
Introduction¶
The Network element allows the owner to propagate changes through out the network, for example if a Primitive changes colour it will be visible to all other users. The Network Element in IMML is an element that is typically nested within another element and does not stand alone.
1 <Network Enabled="True"/>
Child Elements¶
There is only one child element that can occur 0 to Many times
- Filter
Attributes¶
Owner¶
| Type | xs:string |
| Use | Optional |
| Documentation | An identifier that specifies the owner of a given element |
Enabled¶
| Type | imml:Boolean |
| Use | optional |
| Documentation | When true, implies the element should perform network updates in relation to property changes |
Example¶
This Network is a child of the Primitive Element, thus any changes in the properties of the element size, colour, position, etc will be sent across the network and other users will be able to see it. Without the network element the changes would only be seen by the user that made changes on it
1 <Primitive Name="box" Type="Box" Complexity="VeryLow" Size="1,1,1" Position="-38.58308,52.15393,-37.68972">
2 <MaterialGroup Id="-1">
3 <Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True"/>
4 </MaterialGroup>
5 <Physics Enabled="False" Movable="False"/>
6 <Trigger Name="MyTrigger" Event="MouseClick" Target="MyScript"></Trigger>
7
8 <Network Enabled="True"/>
9
10 </Primitive>