Duplicate item into list / do for each / map list

I’m wondering how TouchDesigner handles a scenario when I want to:

  • duplicate an object into a list,
  • process each item in the list.

An example could be an 3d object that I want to copy 100 times into a list, then on each frame I want to move each object into different direction, which is computed using item index as seed.

What kind of nodes I should use? Are there any examples?

If you’re thinking about working with objects in 3D I think what you might be after is instancing.

Instancing can use CHOPs or DATs (though I prefer CHOPs) to to create additional hardware accelerated copies.

You might take a look here to get started:

matthewragan.com/2014/04/23/ins … hdesigner/

matthewragan.com/2015/03/29/thp … hdesigner/

Thanks for the reply, yes instancing is they way to go. I should have read more tutorials before asking this question. :slight_smile:

I was thinking about multiple objects following their own paths in space, this is a good reference project for this: indaehwang.com/touchdesigner … -3d-space/

The feedback and object CHOPs are great for this kind of approach as they’ll help you find the bearing for your instances. Indae has very generously added their project files on to most of their examples (the link called toe) - so you can download this example and pull it apart to get a sense of how it works.