radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator Another

Start a new topic

setOpacity + getProductDataUrl

Hi,

I am trying to make a 3d model preview for users and since our designer uses mask, we need to save image without mask for using in 3d model. 


Here is how i am trying to solve it

1. Set Overlay element opacity to 0

2. Get product data url.

3. Set Overlay element opacity to 1


Problem is that Overlay opacity doesn't come back to 1 untill i click somewhere on the screen. Here is code i am using


   overlay = yourDesigner.getElementByTitle('overlay');

   overlay.setOpacity(0);

   yourDesigner.getProductDataURL(function(dataURL) {

     // make ajax postto save preview image
    overlay.setOpacity(0);

  }


Maybe there is some other way i can export without overlay element. Thanks in advance!!!

Login or Signup to post a comment