JeremyR
Hey Peter,

Ive managed to get this working but  a little unsure of the workflow. It appears you connect a mesh combined with several other mesh objects. This is connected to the shell.outMesh first and an input into inMesh. From these you can create shell to transforms and a transformsToArrays node which you then input the transforms and then back into the shell node?

I noticed the locators made by the shell node have unique values like rgb, weight radius etc. To attach an ID is this where the particleShape comes in?
Reply 0 0
pshipkov
It is very simple (i think).
The shell node can two things:
1. It can extract data per shell - bounding box center/size, component list of point ids, point positions/colors/normals/weights/radii
2. In addition to #1 it can remap attributes of input point cloud to the mesh shells. So if you have 10 shells in the input mesh and 10 points in the point cloud you can "transfer" position/rotation/scale/color/normal/etc from the points to the corresponding shells.
This way we can easily control many "blocks" of mesh data. For example - breaking a bridge model or building, etc. We sim points and they drive shells, etc. Or shatter glass or other objects.
Reply 0 0
fxwriter
I couldn't help myself and made a scene using the new Shell, its simple but the possibilities become endless.

I think this is will become one of my favorite nodes :)
Reply 0 0
JeremyR
Nice scene, not sure you got rgb propagating right, would be good to get particle color changing shell color with age.

Heres something Ive been playing with, you will need MAsh tools installed. The shell and transformsToArrays are the coolest thing for me too.

http://www.youtube.com/watch?v=sGPX1xVsBx8&feature=youtu.be


Reply 0 0
RossGGG
Is there any way to get the extracted shell data into an array?  I would like to create a point cloud with a point at the center of each shell and a point normal that matches the normal of the shell or the closest face.
Reply 0 0
pshipkov
Yes. Check the outShellData attribute.
There you will find information for each shell:
point IDs
boundingBoxCenter
boundingBoxScale
positionPP
weightPP
rgbaPP
normalPP
tangentPP
radiusPP
Reply 0 0
RossGGG
I did find that information in the outShellData attribute, but I'm having trouble figuring out how to pipe that data into point positionPP and normalPP arrays.
Reply 0 0
RossGGG
So far I have not been able to find a way to make use of the outShellData attribute in a procedural manner without resorting to expressions that slow things down too much.  For now, I am just making sure my shells only consist of one face each, then finding the center using the polyPoke technique.  This is working out pretty well, for now, since I end up needing the binormal as well as the normal for my instances to orient properly.  It would be nice, though, if there were an easier way to get the positions of face centers (hint hint).

faceCenter.jpg 
  
Eventually, I would like my shells to be more than one face.  If a way to use the shell centers is ever found, I guess I could do an attributeTransfer to get the normal from the nearest points on the mesh, but I'm not sure how I would get the binormal then...
Reply 0 0
plarson
I've been generally having a problem with the shell node in Maya 2014, not sure which update caused it for me, or what. But I'm seeing it when opening any project scenes I've used shell in, and it's also seen in the shell example scenes. Is it only me?
Reply 0 0
pshipkov
@ross
I will add one outcenterpershell array that will provide he centers, but not sure how we can approach the normal per shell in single array since one vector cannot represent the normals of the shells. It does not make sense.
@plars
What is the problem you experience ?
Reply 0 0
RossGGG
That would be great! Unfortunately the studio I'm at is using Maya 2013 (not the .5 update) on all of our running productions right now so we are having to use the older version of the plugin, but there is talk of upgrading to 2014 once we can be sure it doesn't break the pipeline, so this will be useful then.
Reply 0 0
plarson
The geometry blows up for me in Maya 2014 with the latest plugin version. This is what example scene shell3.ma looks like the moment I open it. http://imgur.com/lh3vU4B

I did a test scene to see if it would work from scratch in Maya 2014, and in this case it didn't blowup when saved and reloaded. However the transformsToArrays.outRotationPP>shellShape.inRotationPP seems to be resulting in a rotation problem when rotating the locator. I'll attach the scene I'm having that problem with.

However in Maya 2013 with Nov 30 2012 version of SOuP, old scenes and example scenes aren't exploding, and the rotation works as expected when the attached(2014) test scene is loaded into 2013(with old plugin version).
Reply 0 0
fxwriter
Hi,

sorry to revive this thread, but I am just now facing a transition into new version of Maya here at work and I found that my scenes that I had built in Maya 2013 using Shell node now have this exact problem where the geo explodes.


Reply 0 0
pshipkov
I just loaded your example in Maya2015 and all is good.
Can somebody else confirm plars problems ?

Did the same in Maya2014 - all good.
Reply 0 0
fxwriter
Yes, that scene works for me fine, but for some reason when I build it from a shattered object it explodes.

I am starting to wonder if Pdi drops some sort of transform data that is messing up the Shell node.
There is a polyblind data node which I initially thought was the root of my issue, but when I saw this thread I thought it might not... so here we are.

Here is a scene

I am on 2013.5 with SOuP Mar 23 2014

I will update to the latest build here at work at the end of the day I just have to wait till everyone is off the computers

Thanks
Reply 0 0
Reply