@DanielPiker I have a morphing setup where multiple parts of a human body are morphed in separate, consecutive Mesh Cage Morph components. The calculation of the weightings has to be done one after another and I was wondering how this would be done with a script.
I tried something with Copilot but the script executes whenever the Mesh Cage Morph component runs and this slows down everything.
At the moment I have four buttons and I click one after another after the previous calculation has completed
Hi Martin,
Not sure I’m following the sequence here. How are the outputs of one cage morph being used as the input to the next - reference cage, target cage, or contents? Is it not possible to just have all the W inputs set to True?
(also btw - there’s an improved Mesh Cage Morph coming in the WIP. It’s still changing, but there’s one you can try out now that’s specifically for the case where the contents being morphed are also a mesh - the component isn’t on the toolbar but you can get it in Grasshopper by searching for #MMMcpp)
Thanks for the quick reply. For my purpose, the new test component lacks a point input.
Left and right arms are morphed separately because in the original position the forearms of a cyclist in time trial position are pretty much touching each other. With the current mesh cage morph component I can get the points for each arm, morph the points separately into a position where the arms don’t touch and replace the points in the original mesh.
The target meshes are transformed with Kangaroo.
Currently I’m morphing legs then arms and then the head. Points are replaced on the original mesh after each morph.
You shared this Kangaroo example with a script that toggles a gate once the solver has converged. I think I need something similar.