Thanks, I've managed to convert that part now, however, I can't seem to build the array. The code I have so far is below, I've been using the getParticleAttr command, but it doesn't like whatever I put into where it says 'emittedParticles'
py.currentTime( 1, edit = True, update = True)
py.emitter( n='myEmitter', type ='surface', r= 1000, sro = 0)
py.particle( n='emittedParticles' )
py.connectDynamic( 'emittedParticles', em='myEmitter' )
py.currentTime( 2, edit = True, update = True)
array = py.getParticleAttr( 'emittedParticles', at='Position', array=1 )
py.particle( attribute = 'Position', order = array, query = True )
The actual page is here, does anyone have any idea what I'm doing wrong?
EDIT: The lecturer helped out on his own accord as he knew there wasn't much documentation on it, just for if anyone comes across this in a google search, this is the basic idea.
particleEmitter = py.particle( n='emittedParticles' )
#connect particles to shape and set frame to 2 (otherwise there won't be any particles)
num = particleEmitter.num()
for i in range(num):
particleInfo = particleEmitter.Point( 'emittedParticles', i )
particlePos = particleInfo.position