in general you can't. InitializeOnly fields are not readable. A browser can throw those values away after the file is loaded.More generally, how is it possible to get the dimensions of geometric primitive nodes such as Boxes, Spheres, Cones, etc., since all the respective fields (size, radius, height, etc) are initializeOnly?
You can wrap them in a proto to make them readable.
PROTO MySphere [
inputOutput SFVec3f radius 2
] {
Sphere {
radius IS radius
}
}MySphere {
radius 4
}
-- Alan Hudson
President Yumetech, Inc. www.yumetech.com President Web3D Consortium www.web3d.org 206 340 8900 ------------------------------------------------------------------------- for list subscription/unsubscription, go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html