These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Select node in transparent object

ekschperte
ekschperte's picture
Registered: Jun 12 2010
Posts: 29

Hey,
 
is it possible to select a node which is located inside another (transparent) node with mouse events in Adobe Reader 9.4.0? I tried both SelectionEventHandler and MouseEventHandler. Both did not work. The hits-array is always undefined! :-(
 
My code:
 
function initSelectionEventHandler()
{
var eventHandler = new c3d().MouseEventHandler();
eventHandler.reportAllTargets = true;
eventHandler.onMouseHit = true;
eventHandler.onEvent = function(event)
{
if (event.leftButtonDown)
{
if (event.hits.length)
{
console.println(event.hits.length); // Reports e.g. "2" when clicked on the surrounding mesh
console.println(event.hits[0].target.name); // Reports "TypeError: event.hits[0] is undefined"
}
}
};
c3d().runtime.addEventHandler(eventHandler);
}
 

 
function c3d()
{
return getAnnots3D(0)[0].context3D;
}

My Product Information:
Reader 9.3, Windows
ekschperte
ekschperte's picture
Registered: Jun 12 2010
Posts: 29
Nobody knows how to select "hidden" meshes in adobe 3d objects? I thought, that should be possible with the hits-array? Or am I wrong?