cwisbg

So I was playing with the idea of more or less making particle volume "skeletons" for some molecular animations and Im at a place now where I'm wanting to drive a mesh with the particles (not the mesh the particles output) similar to how a wrap deformer works with the particles being the drivers.

I gave the attribute transfer a try and was able to get some effect, but nothing more than a local push kind of reaction. Any ideas how this could be efficiently pulled off? 

possibly attaching joints to the particles and just skinning them?

Reply 0 0
pshipkov
particles.position -> pointCloudToMesh.inPositionPP
pointCloudToMesh.outMesh -> meshShape.inMesh

Use the meshShape as wrap deformer.
Reply 0 0
cwisbg
Awesome, that does work but im getting some wild deformations. Probably coming from the sparsity of my particles/ how wild they are moving around.

Is there a way other than getAttr to possibly directly drive a joint with the particle position/rotation? 

I connected up a quick test for driving some joints with pyExpression using the getAttr of the particles position and rotation, and it was behaving a little smother but I have a feeling it will be quite slow once i have 2000+ particles/joints.
Reply 0 0
pshipkov
Having 2000 joints moved by particles using pyExpression won't be slow, but the skin cluster may slow you down. Especially if the deformed geo is dense.

If you can provide a scene showing the wild particle motion i can try to give you a more targeted answer.
Reply 0 0
cwisbg
That sounds promising apart from the slow skin clusters, but I discovered a little flaw. The particles were not actually rotating like I thought they were so Im going to have to re think some stuff. I do think however when I can get them rotating correctly your first suggestion will work. 

I attached the scene if you are curious. 

Reply 0 0
pshipkov
After looking at your scene - for limited number of particles you can totally use skinCluster with joints.

particles->pointCloudToMesh->vertexConstraint
From that point you can either parent a joint under the vertexConstraint locators nodeCast joints to the locators - that will replace the locators with joints directly, this way you minimize clutter in the scenes.
Reply 0 0
cwisbg

Here is another scene that id like to have the particles drive the mesh. So far using point cloud to mesh does work but not quite as localized as i need. Any thoughts?

Edit: looks like you just posted while i was writing this. Ill give that a try! thank you!

 

Reply 0 0
Reply