.create() custom comps?

Hey all,

I’m working with python/TD to create a generative art piece. I have a custom container comp that I’d like to create x amount of based upon the length of a string.

I’ve used for loops and the op(‘/project1’).create() function to auto generate Ops based upon the length of a string before , but these only generate empty Ops. I was wondering if it was possible to use .create() on existing ops?

If not it looks like my best bet will be the replicator comp. I’m just more familiar with python and wanted so if there was a way to work that out.

Thanks!

I’d suggest looking at OPSnippets for examples using the replicator,
but if you prefer scripting, use the copy() method of the COMP class:

docs.derivative.ca/COMP_Class

Cheers.
Rob

Perfect! Works like a charm, thanks!