Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emboss One Json over Other #36

Open
amitnkukanur opened this issue Dec 27, 2017 · 0 comments
Open

Emboss One Json over Other #36

amitnkukanur opened this issue Dec 27, 2017 · 0 comments

Comments

@amitnkukanur
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant