radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator Another

Start a new topic

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