funkymogli
Hello! 
i was trying to use the arrayToTexture2d node to get a representation of a blendshape-weighting into a shading network. 
I figured to read out the blendshape-weighting i would have to use the multiToArray Node and connect it to the weightlist of the blendshape (inputTarget[0] ... .weights), but i can't connect it. 
Is that not possible or am i too stupid :)  ?
Or is there another way to archive that result?

Thanks a lot!
David 
Reply 0 0
pshipkov
I think you need arrayToMulti since the textureToArray outputs "simple" double array but the blendShape node looks for multi array.
Reply 0 0
funkymogli
I think you got me wrong. 
I want to do it the other way round.. i need to get the blendshape-weighting into the arrayToTexture2d node. I want to have additional displacement on the same areas where the blendshape-weighting is above zero. 

Thats why i tried to connect the inputTarget[0] ... .weights of the blendshape  to the multiToArray-node and then the multiToArray-node to the arrayToTexture2d. 

Reply 0 0
pshipkov
That should work. Pass me a scene if you can.

Reply 0 0
funkymogli
unfortunately its very hard to get any maya file out of here..
but its very easy to create a blendshape and try to connect its weights to the multiToArray- Node. 

I think what im missing is how to get the per-point weight-values showing up in the connection editor for the multiToArray node. 
All its showing is the .inWeightList with nothing beneath it.
whats the trick to get these atrributes in there?(inWeightList.inWeightList[0].inWeightList[0].weights....etc.)

Thanks again!
David

 
Reply 0 0
pshipkov
I think you have to initialize the array. I guess you didn't paint any weights. The blendShape node assumes that everything is 1. That makes sense withing its scope. But when outside of it that attribute is just data container - if it is empty - then it is very hard to say how this should be interpreted. That's why by default i assume it just empty :)
Reply 0 0
funkymogli
i finally made it. i had to first connect the Bs-weights to the multiAttributeTransfer  and then to the multiToArray node. the array output then into the arrayToTexture2D. 

The Problem now is, that the arrayToTexture2D is only updating, when i establish or break the connection to the blendShape-Weights. 
A change on the Blendshape Weights by painting doesnt seem to be evaluated trough the chain. 
Any ideas about that.? seems like its just the same update problem with Blendshape Weights, just the other way round. i hate evaluation problems. 

Reply 0 0
pshipkov
Correct, this is a known problem (or feature, depends on how you look at it) of the blend shape node.
Reply 0 0
Reply