#VRML V2.0 utf8 ## ##@* monitor ##@ dlp-monitor PROTO dlp-monitor [ ## "@vr-extern-proto-dlp-monitor.wrl" eventIn MFString message exposedField MFString string [] exposedField SFVec3f scale 1 1 1 exposedField SFVec3f translation 0 0 0 exposedField SFRotation rotation 0 0 1 0 exposedField SFColor text 1 1 1 eventOut MFString message_changed ]{ ##@ body Transform { scale IS scale translation IS translation rotation IS rotation children [ Transform { translation 0 0 0.1 children [ Shape { appearance Appearance { material Material { diffuseColor IS text emissiveColor IS text } } geometry Group { children [ DEF panel Text { string IS string } ] } } ] } ##local transform ##@ script Script { directOutput TRUE eventIn MFString message IS message eventOut MFString message_changed IS message_changed field SFNode panel USE panel url "vrmlscript: function message(value,time) { panel.string = value; message_changed = value; } " }## end script ] } ## end monitor } ## end monitor proto ##@ scene dlp-monitor { string "hi" } ##