Welcome to the support center for

Fancy Product Designer & Multistep Product Configurator

Change color of first layer in active canvas through javascript....

I want to change the shirt color from out site the designer. i have a Button on the same page when designer is showing, when that button is clicked the color of the shirt should be change to one of the available color.


i have access to fancyProductDesigner object. So is there a way to use fancyProductDesigner to change the shirt color?


Some thing like the below code


 

fancyProductDesigner.currentViewInstance.stage.setBackgroundColor("#7E5109");

OR
fancyProductDesigner.currentViewInstance.setElementParameters({fill: "#7E5109"}, 0);

 


Thanks


Login or Signup to post a comment