[3D] How to set "hitEnabled" to "False" ?

Community Beginner ,
Feb 05, 2019

Copy link to clipboard

Copied

!Hello, I want to select an object  behind  plates.

Specifically, I want to select a piping component behind transparent plate.

So I need to set the nodes's property "hitEnabled" to "False".

Is that the right approach ?

then, how to set it False? this is my code:

c3d = this.getAnnots3D(0)[0].context3D;

thePlate = c3d.scene.nodes.getByname("Plate");

myPlate.hitEnabled =false;

I tried it in the console, but no change.2019-02-06_11-11-07.pngClicking on Photo in T

Please help me with this.

TOPICS
Acrobat SDK and JavaScript

Views

120

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

[3D] How to set "hitEnabled" to "False" ?

Community Beginner ,
Feb 05, 2019

Copy link to clipboard

Copied

!Hello, I want to select an object  behind  plates.

Specifically, I want to select a piping component behind transparent plate.

So I need to set the nodes's property "hitEnabled" to "False".

Is that the right approach ?

then, how to set it False? this is my code:

c3d = this.getAnnots3D(0)[0].context3D;

thePlate = c3d.scene.nodes.getByname("Plate");

myPlate.hitEnabled =false;

I tried it in the console, but no change.2019-02-06_11-11-07.pngClicking on Photo in T

Please help me with this.

TOPICS
Acrobat SDK and JavaScript

Views

121

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 05, 2019 0
Community Beginner ,
Feb 07, 2019

Copy link to clipboard

Copied

I found It works. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 07, 2019 1