javascript - X3D - Modify specific nodes -


i have defined scene example, either written in seperate x3d file or prewritten in loaded html site.

for example this:

<x3d id="x3dstyle">       <scene>      </scene> </x3d>  

i have kind of xml tree view can select node of tree, node "scene", , add node via textboxes , button cube example.

so first things first: how select node node "scene"? how add sub-node parent node specific attributes? how workflow differ if load external x3d file? how differ 2 nodes have same tag example ("shape") in case, e.g. change color of first shape green , 1 of second shape red:

<x3d id="x3dstyle">      <scene>         <shape>             <appearance>                 <material id ="color" diffusecolor='1 0 0'></material>             </appearance>             <box></box>         </shape>         <transform translation='-3 0 0'>             <shape>                 <appearance>                     <material diffusecolor='0 1 0'></material>                 </appearance>                 <cone></cone>             </shape>         </transform> </x3d>  

i garant user xml tree view of x3d scene, user can select specific node, have suggestions kind of plugin preferable kind of job?


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -