Geuse
Hi Peter!
I'm back with another question. I'm trying to follow the example file: emit_geometry.ma
My goal is to create a bullet trail effect of geometry. If there's an easier and more straightforward way, I'm all ears, but imo it seemed like a good exercise for me to use SOuP.

As opposed to the example scene I'm using nParticles and the attribute list are different so I have no idea how to replicate this connection. There's no attribute called index or id on the nParticle shape node.

particleShape1.idIndex -> pointAttributeToArray.inComponents

The reason why I want to use nParticles is simply because the result looked way better though I have replicated the same setup using legacy particles. The attribute list are still different from the example file.

I'll upload both scene files.

nParticles: https://dl.dropboxusercontent.com/u/16029672/3D/bullet_time_vfx_nParticles.ma
vs
legacy particles: https://dl.dropboxusercontent.com/u/16029672/3D/bullet_time_vfx_legacy_particles.ma

Thanks in advance


pshipkov
Just create a new PP attribute of type integer called idIndex (or whatever you want) and in the post-dynamic-expression type this: idIndex = (int)id;
Reply 0 0
Geuse
Thank you!
Reply 0 0
Reply