Cloning/duplicating images

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?


For an object called ‘boxSVG’:

var n = doc.getElement('boxSVG').dom.cloneNode(true); = '0px'; = '0px'; = 'new-id-for-object';


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