Ahhh ! Need help checking viewer API script page, not working!


(Ixtatica) #1

Hello. I have a problem in my life. I really.. and I mean REALLY need to get the below script to work so that I can hide and show different objects in my model. The "3D model page v01" is my modification of the template "monkey-head". I need to use the same hide/show possibilities but for my own model. Unfortunately no model shows up when loading the 3D model page into browser. The development tool say the page has an error on the nodes, on row 78 in the "3D model page" html page.

Could someone help me fix this please?

3D Model page v01.html (19.8 KB)

monkey-head.html (8.6 KB)

(Mauricesvay) #2

Line 75, there should be a comma at the end of the line.

buttonLine_2015_OFF = document.getElementById( 'Line_2015_OFF' ),


Ah, I have the habit of 1 var per scope...

(Ixtatica) #4

fantastic.. sorry for mistake. The "," made it work !!!!

(Ixtatica) #5

Although all buttons doesnt't work. I don't know if I'm labeling all variables right.