Cut/copy and paste an operator

Hi everybody
Does anyone knows a magic string in python to cut/copy and paste an operator?
It seems to be possible only to create destroy and copy that is like duplicate.
But if I need instead to cut that op here, and paste it there?
Would be wonderful!
I’m trying to create something like an fx chain reorderable by a lister. To alter them sequence live.
Thanks
Have a nice day

You can’t interact with the TouchDesigner operator clipboard with Python. You have to use COMP.copy and OP.destroy to simulate cutting and pasting. What do you need to do that those functions don’t work for?

Becouse i have to change directory. I did’nt manage with only theese functions.

So you want to paste into another component? The code looks like this:

op('/').copy(op('/project1/noise1'))

For more options, you can type into the textport:

help(COMP.copy)

yeah! thanks a lot

1 Like