forked from va3c/viewer
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi,
Am trying to load one json over other, its like embossing one model over other.
The below is my code. The problem am getting is its adding a new json to other area, not on same area.
`
var mySpectacles;
$('#btnLoadJson').on('click', function() {
$.getJSON("json1.json", function(data) {
alert('a');
mySpectacles = new SPECTACLES($("#Spectacles_output"),data,function(app) {});
});
});
$('#btnLoadJson2').on('click', function() {
$.getJSON("json2.json", function(data) {
mySpectacles = new SPECTACLES($("#Spectacles_output"),data,function(app) {
app.setBackgroundColor(0xFFFFFF);
}
);
});
});
`
Please suggest how can i place one json over other.
Rgds,
Amit
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels