[3D + JS] Model 제어 Example (Radio Buttons)
- 05-05
- 461 회
- 0 건
[member]sahoon[/member]


* Radio Button #01 (Name : switch_01, Value : 1)
[code]pageIndex = this.pageNum;
annotIndex = 0;
if (getAnnots3D(pageIndex)[0].activated) {
c3d = getAnnots3D(pageIndex)[0].context3D;
var outcome = this.getField("switch_01").value;
console.println("RB: outcome: "+outcome);
if ( outcome == 1 ) c3d.setOnlySelectedISVisible("ISOSURFACE_003", true);
else c3d.setOnlySelectedISVisible("ISOSURFACE_003", false);
}[/code]
* Radio Button #02 (Name : switch_02, Value : 2)
[code]pageIndex = this.pageNum;
annotIndex = 0;
if (getAnnots3D(pageIndex)[0].activated) {
c3d = getAnnots3D(pageIndex)[0].context3D;
var outcome = this.getField("switch_01").value;
console.println("RB: outcome: "+outcome);
if ( outcome == 2 ) c3d.setOnlySelectedISVisible("ISOSURFACE_004", true);
else c3d.setOnlySelectedISVisible("ISOSURFACE_004", false);
}[/code]
* radio.js
[code][/code]
- radio-buttons-homo-lumo.pdf (2.3M) 2 회
- http://sf.anu.edu.au/~vvv900/cct/appl/jmoleditor/manual/tutorials/3d-p… 6 회
- 이전글 [3D + JS] SetView 조정 15.07.09
- 다음글 [3D + JS] Layer 제어 Example 2 (Check box) 15.05.05
