Andrew04R6
Hello,

I *may* have found and issue where the local vars for both inRgba and inRgba2
always return a 0,0,0,1 and 0,0,0,0 respectively. I did find a post where you had mentioned that some code had been commented out and that a fix would in place in the next release.
Can you verify this potential bug?
I have not tried for the other PP inputs.

Thanks Peter!
-Andrew
pshipkov
All is good here.

What is the geo type you are working with (mesh, curve, surface, etc) ?
If mesh - do you use the default color set, or custom one ?
Do you pass point colors data to the point node or you generate new data from it ?
Reply 0 0
Andrew04R6
Hi Peter, thanks for looking.
All RGBA data out is fine. Originally I had pumped the RgbaPP from the cocoon node into it, and then tried a createArray with 4 floats. I was not able to get any values from either source.
Am I using the wrong Data Types?



Thanks!
-Andrew
Reply 0 0
Andrew04R6
Hello Peter.
I have included my experimental file.
The RgbaPP values are printed to history pane. 

I also noticed another issue, it does not let me save modifications to the very first element in the color falloff section. If I place another element, it's changes are saved.  

would you (or anyone else) mind taking a look? Thanks!
-Andrew
Reply 0 0
pshipkov
Actually everything is correct.
The reason the point node is not giving returning you the inRgbaPP values is because they are ignored when operating on mesh geometry. point.inRgbaPP is used only when working with other geometry types that cannot embed the point colors inside their nodes - for example - curves, surfaces, particles. In this case we have to create parallel chain to supply the color pp data.
The cocoon node does not recolor the output mesh. That's why when you pipe the cocoon.outMesh into polySurface2.inMesh you don't get colors, as result polySurface2.outMesh does not pass colors data to point1.inGeometry.
You can use arrayToPointColor node insterted between the cocoon and polySurface2. Then things will look right.
Reply 0 0
Andrew04R6
"The reason the point node is not giving returning you the inRgbaPP values is because they are ignored when operating on mesh geometry" says it all. Thanks for looking!

I'll give the arrayToPointColor node a try, thank you!
-Andrew
Reply 0 0
Andrew04R6
Thank you Peter. That totally did it.

Reply 0 0
Andrew04R6
Well, I thought it did.
It worked fine for a small scene, but doesn't seem to scale up.

I receive 
// Warning: arrayToPointColor1: inRgbaPP array length does not match the point count. // 

is this because the rgbaPP only includes the generated points and not the points where the original verts were? Is there a way via mel to get the outMesh vertex count and the outRgbaPP array count?

I have attached my scene file.

Thanks again for spoon feeding me all this info,
Andrew
Reply 0 0
pshipkov
I see. Yeah, the cocoon outMesh does not correspond 1:1 with the segments. There is a good reason behind that. As result the outRgbaPP, outThicknessPP and outPositionPP do not correspond directly to the mesh, but they describe the segments created by the cocoon node.
I am about to release new service update, but i will delay it a bit to tweak a bit the cocoon node. Basically i will make it output mesh with colored points directly.

In the meantime you can attribute transfer the outRgbaPP to the mesh object you have. That should be pretty fast.
Delete the arrayToPointColor node.
Create new attributeTransfer node and insert it between cocoon and your mesh. Set maxInfluences to 1, make it transfer colors.
Create bounding object from the new attributeTransfer, set its type to "point cloud". connect cocoon.outPositionPP to boundingObject.inParticlePositionPP and cocoon.outRgbaPP to rgbaToColorAndAlpha.inArray, then rgbaToColorAndAlpha.outRgbPP to boundingObject.inParticleRgbPP.
Reply 0 0
Andrew04R6
Thank you so much Peter!
I have played with the attribTransfer but wasn't doing exactly the way you describe. I'll try this tonight!
Thanks for continued support!

-Andrew
Reply 0 0
Reply