Clones inside clips

Ok here is the scene
In my project I have a clip (let’s call it enemyContainer) with a couple clips inside (one for each type of enemies)
Is it possible to .clone() clips inside the containerClip from functions in project root?

targeting like:
project.enemyContainer.enemy1.clone() do not works

putting a clone function inside the container clip and calling it from outside do not works
project.enemyContainer.doTheClones(); NO

cloning in the container clip frame script do works tough

Any ideas how to do it?

I think ur trying to clone an object inside of a clip, but by using a code outside of the clip. Just use a variable.

Example:

var c=a.b.clone();
c.x=500;
c.y=500;

Let me know if this isn’t what u were looking for

Do you mean clone something from inside a different clip from a different source, and then make the clone a sibling of the source? If so, then try this:

var clone = thing.otherthing.clone();
this.parent.addChild(clone);

sorry guys
it was a stupid mistyping error on my part
let’s see if I can delete this topic

Topics can’t be deleted, unless if u report it.

Maybe just change the title to “Problem Fixed” or something

yup. cant delete
it would be helpful to have a clip selector (autocomplete sort of) in the script editor
It would be good for all the dyslexic morons like me :sweat_smile: