Skip to content

Emboss One Json over Other #36

@amitnkukanur

Description

@amitnkukanur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions