astropol
Hi guys,

We have a project where we need to get Maya particle instances baked out to geo for import into Unity. I've never had much luck with the online scripts for converting particle instancers to Geo. They just hang forever presumably locked in endless calculations. Even with a relatively light particle system.
If I had time I could probably hack or develop something to handle this but I don't so I thought I'd reach out to see if anyone has built a network to do something like this. 
I've searched the forum and come across a few potentially relevant threads but nothing jumps out as a quick solution.

If there was a way with the SouP tools to take particles and bake them as animated locators or nulls with instanced or duplicated geo parented underneath that could be a dirty solution. I'm not familiar enough with what's available and frankly how to hook it all up to jump in and figure this out in the ridiculous amount of time we have (days).

Otherwise I'll be having junior animators duplicating hundreds of preanimated objects and randomizing them enough to sell the idea.

Any thoughts or help would be much appreciated.

Thanks,
Andrew
pshipkov
Look under the second shelf button -> uninstancer.
Select one or more particle systems and run it.
Maya's DAG is pretty good but once we are talking thousands of objects then you will face performance issues. There is a reason for particle instancing to exist.
Reply 0 0
astropol
How about converting them all to a single piece of geo for caching out to Alembic?

I've been playing with the Copier node and am able to get a single mesh but I'm having trouble getting the same Rotation working with it that I do with the regular Instancer. I have Rotation in the particle under the Instancer options set to World Velocity so the instanced objects will aim in the direction they are moving. I'm not able to get that same data into the Copier. I've tried connecting nparticle.worldVelocity directly to copier.rotArray and also tried creating a rotationPP attribute on the particle and creating a Runtime after Dynamics expression  nparticle.rotationPP = nparticle.worldVelocity
Neither method seems to work.

Any ideas on how to make that work? Or is there another option to feed Maya's instancer into a mesh output?

Thanks,
Andrew
Reply 0 0
pshipkov
Copier does exactly what the instancer does when it comes to orientation.
The easiest way to help you is to give me a scene where this is not working for you.
Reply 0 0
David l
If i remember correctly rotationPP on the copier node is for XYZ rotations only.
Instead you need to connect the velocityPP to the copiers aimArray attribute, and you can also specify an upvector through the copiers upArray attribute if needed.
Reply 0 0
astropol
Yep I just saw that. I didn't see the aimArray attr when I was first hooking things up. Maya only shows you what it thinks you should see apparently :-)
Reply 0 0
pshipkov
It is actually a node editor bug that have been there since forever. ;)
Reply 0 0
Reply