op(‘/project1’).copy(op(‘out1’), ‘out2’) taken from derivative.ca/wiki088/index. … n_Tutorial gives an error.
The error here is that you’re sending the incorrect number of arguments.
It looks like the copy method doesn’t accept an argument for the name of the operator. Instead try this:
[code]# create a new variable called new_op
this is also a copy of the operator out 1
new_op = parent().copy( op(‘out1’) )
since we’ve defind our new op with the variable
name new_op we can continue to use this name
our next step will be to give it a name
new_op.name = ‘out2’
finally we’re going to change the location of
our new operator. In this example we want it
created at a location in relation to our original
operator. We start by finding the original operator’s
y position, and then subtract 200
new_op.nodeY = op( ‘out1’ ).nodeY - 200[/code]
Cheers,
M