<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='BradenPrototypeInitializeExample.x3d'/>
<meta name='creatorcontent='Don Brutzman'/>
<meta name='createdcontent='5 March 2000'/>
<meta name='modifiedcontent='26 December 2002'/>
<meta name='descriptioncontent='Default color red, overridden color green: example answer to email question showing how to initialize a node field when creating a ProtoInstance.'/>
<meta name='referencecontent=' http://www.web3d.org/WorkingGroups/x3d-contributors/hypermail/2000/0487.html '/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/development/BradenPrototypeInitializeExample.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ProtoDeclare definition: Foo
Index for DEF node: FOO_APPEARANCE
-->
<Scene>
<ProtoDeclare name='Foo'>
<ProtoInterface>
<field name='runtimeMaterialInstancetype='SFNodeaccessType='inputOutput'>
<Material diffuseColor='1 0 0'/>
</field>
</ProtoInterface>
<ProtoBody>
<Shape>
<Appearance DEF='FOO_APPEARANCE'>
<IS>
<connect nodeField='materialprotoField='runtimeMaterialInstance'/>
</IS>
</Appearance>
<Sphere/>
</Shape>
</ProtoBody>
</ProtoDeclare>
<ProtoInstance name='Foo'>
<fieldValue name='runtimeMaterialInstance'>
<Material diffuseColor='0 1 0'/>
</fieldValue>
</ProtoInstance>
</Scene>
</X3D>
<!--

Index for ProtoDeclare definition: Foo
Index for DEF node: FOO_APPEARANCE
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>     <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->