djx
Hi Peter. Sorry for spamming you with questions about Morph, but it's proving to be really useful, so I want to know as much about it as possible.

I don't think I understand how the "neutral" keyword works. Im mainly using the API, but I guess its the same if we talk about the UI. If I'm adding targets to an end-of-chain morph node, then I'm finding the state of the neutral keyword makes no difference to the result. This means that to get the result I expect, before I add a new target, I have to set the morph envelope to zero. If I don't set envelope=0, then my new target's deltas are based off the current deformed pose. My understanding (probably wrong) is that it should make those deltas from the origShape if neutral=True. Can you help me understand how it works.

thanks as always

David
Reply 0 0
djx
Ha! As is often the case, the penny dropped about 3 minutes after my last post. I think I can see how this is working now.

However I also notice that in the UI, "neutral" is greyed out and False when a transform space is added. Is that intentional? I'm guessing it is this way because it is the setup one would most likely want. Unlike the UI, the API does not protect us from making the wrong choices, which is what led to my first post. All good now though.

For end-of-chain transform-space pose correction Morph node is a timely lifesaver and very much appreciated.

David
Reply 0 0
pshipkov
Good to hear you figured it out.
Yes, API calls are not "insulated".
And to clarify, the neutral option means that the intermediate (neutral) shape will be used as a base to calculate the point offsets. When turned off then the deformed object will be used as a base.

I don't think you have to turn-off the morph deformer before applying new corrective shape. I take care of that stuff internally. Let me know if that's not what you are seeing on your side.

One last thing - make sure that if you don't have a lot of shapes you probably need to set the number of threads to 1 or 2. In the new version that attribute will be set to 1 by default, since most people never go over 100-ish targets, i think - so it makes sense to target this audience first.
Also, i am considering moving this node to CUDA or OpenCL - but that's for later.
Reply 0 0
Reply