09-11-2009, 03:09 PM
I was trying to do this with the macro recorder, I got:
Something to be expected actually.
The problem is that when I try to run the same code in the listener I get an error:
-- Type error: Call needs function or class, got: undefined
What am I missing here?
Apparently PFlow_Aburn() is not enough to create the operator - there are some parameters required?
Code:
particleFlow.BeginEdit()
ev1 = Event()
ev1.setPViewLocation 84 22
op1 = PFlow-ABurn()
ev1.appendAction op1
op2 = DisplayParticles()
op2.color = ev1.wireColor
ev1.appendAction op2
particleFlow.EndEdit()
Something to be expected actually.
The problem is that when I try to run the same code in the listener I get an error:
-- Type error: Call needs function or class, got: undefined
What am I missing here?
Apparently PFlow_Aburn() is not enough to create the operator - there are some parameters required?