ActivePresenter Saola Animate Pricing Download

Cloning/duplicating images


(Jairo Dallos) #1

Hi,
i´m using nodeClone() in order to populate the scene with some repetitive graphics, but is not succesfull for me.

Can you offer a code example for this procedure inside Saola?

Thanks


#2

For an object called ‘boxSVG’:

var n = doc.getElement('boxSVG').dom.cloneNode(true);

n.style.left = '0px';

n.style.top = '0px';

n.id = 'new-id-for-object';

doc.getScene().dom.appendChild(n);

If the number of graphics is fixed, but the image for each occurrence is random, I’d suggest doing this differently.