Hi,
Model level settings control and Mesh areas extraction possible in Acrobat X?
I need to set up different (300 and more!) options of Model Tree Levels switched on/off. Is there a way to control these "on/off levels settings" through javascript and not by setting up views for each option, in order to automate the process? Or is there a way to create views with Node visibilty settings in field scripts?
Furthermore is it possible to extract information such as the mesh area (that is visible when "Show Physical Properties" is clicked)?
many thanks for your help!
kiara
.
.
// Sets visibility and render mode of all meshes, using a wildcard match
// either of the object itself or the object's parent
// eg partVisW("leg","wireframe",0) affects anything with "leg" in the name (leg1, myleg...)
function partStateW(_name, _state, _vis) {
var currMesh = null;
var nN = null;
var nP = null;
for (i=0; i -1) || (nN.indexOf(_name) > -1)) {
if (_state != "") currMesh.renderMode = _state;
if (_vis != 0) currMesh.visible = (_vis>0);
}
}
}
There is no scripting access to create new 3D views, only to select views from the existing array.
In terms of custom metadata associated with a node, you can inspect the node.metadataString and node.info strings, but they won't contain all the information you can see on the Model Tree.