viper_0711
Hi Peter,

My honor to join the community. Although others have already said, I must say your tools set are killer!! feels like bringing the power of houdini into maya native (of course they are still different). I'm quite amazed.  the new morph node keep all of us wondering the even bigger potential after you released us just part of its capability but already super amazing!

here I have a newbie question:

I'd like to mimic the classic blendshape with painted weight corresponding to a face set to limit area of effect, and then do some flood smooth to smoothen out the weights of boundary of the set. The reason i explore morph node is weightList manipulation seems very slow in large number, and flood smooth is also slow, one-off(not live connections), and i can't find any MEL that do the flood smooth directly without resorting to GUI artisan context commands (which invokes other GUI context and refresh issues).

My though is to try to use a group node pattern mode and input the face ids from Set. then i don't know how to convert the outComponent into weightPP of 1, tried attribute transfer and create array, etc, but no luck. then the flood smooth part i want to mimic that by blurPointAttribute..

has been trying for hours. must be me not familiar with the logic. Wish to get some insight on how to do this. 

thanks
Kwai






Reply 0 0
pshipkov
Welcome aboard and thanks for the good words about SOuP !

Attached you a file that shows how to do smoothing based on set of point ids - the fast way.
The screenshot with notes below explains what is going on. Let me know if you have any questions.
Screenshot.png



Now, there is one thing i am not completely sure about - the desired workflow of what you are trying to achieve. It does not sound like you can spend much time for combination shapes and proper structuring of the facial targets so they can blend nicely together.
It seems that you are looking for a why to procedurally or semi-procedurally smooth-blend any possible combinations of them.
If you elaborate on how you want this to work - step-by-step, then i can try to come up with some idea.
Reply 0 0
viper_0711
Hi Peter, thanks for the effort for the illustrated image.
i think i figured that part out.
yes my original question is different. Lets describe it this way:
I want to combine 2 character mesh with same topology. A & B, to output an new A only the head is replaced by B.
I has been doing this by classic BS and then paint BS weight at the junction (neck) and flood smooth it so that the transition is smooth. that's not too hard.
however the reason i want to use soup is i want the smoothing to be procedural: i want later users to be able to tweak the amount of smooth at the transitional junction part by a single attribute, instead of hard-baked it in BS weight and need to user to go back to re do paint weight and smooth less again.
so i'm thinking how to rig this up by soup for users to increase or decrease the amount of smoothing the transition at the neck.

it doesn't have to be morph node if BS can accept weightPP from soup nodes. the question i try to figure is how to convert my preset faces (objSet) to become weightPP at first place. then maybe add a blur point attribute for the interactive smoothing control as i intended

i already scripted the easy part of converting the objSet into the string to fill the "pattern" attrbute of group node. but then its "outComponent", not a weightPP output of all 1 to plugin into BS/morph.

i tried playing with attribute transfer , input the group outcomponent to attribute transfer's incomponent, check the "weight" option, and output the weightPP to the BS/morph. no luck guess its wrong concept.

in my case, seems also not make any sense to add a bounding object since my source is face set not an interactive transform.

maybe I need some direction. i must be still not good at this data flow model.
Reply 0 0
plarson
viper_0711 wrote:
output the weightPP to the BS/morph. no luck guess its wrong concept.


Are you connecting the outWeightPP to the morph's targets -> inbetween__*name* -> targets[1].weightPP?

For the normal Maya blendShape weightPP it's a bit more difficult. You can use the multiAttributeTransfer -> blendShape. I'm pretty sure the needed array connection can't be done in the editors, so you have to use connectAttr(connectAttr multiAttributeTransfer1.outWeightList[0].weights blendShape1.inputTarget[0].inputTargetGroup[0].targetWeights;).  And you need to force evaluation by using a Point node at the end, doing a getAttr on the BS weights. Check out the blendShape example scenes Peter has, they show that setup.

Perhaps for what you need you could just use vertex colors? ma vtx2_MorphWt.ma    
Reply 0 0
viper_0711
thanks!
this sample scene is what I need :)
guess I missed this one
Reply 0 0
Reply