Hi!
Long time since this has been posted. But I’m trying to automatically run a .gh file through -GrasshopperPlayer.
But when I try and make the button for it i in Rhino it stops and looks for a .gh file in the wrong folder location. It seems like it’s because the Macro Command contains blank spaces (folder name has a blank space etc). Should I replace the blank spaces in the filepath with something else?
Hi @Linus3
Yes, spaces in the file path will stop the macro working properly.
The solution is to put the path in quotation marks.
So something like
-GrasshopperPlayer "C:\blah blah blah\cageMorphPlayer.gh"
Thank you Daniel. Will try that out shortly
The weightings encode how each of the points of the object being morphed relate geometrically to the reference cage -they are a form of coordinates. Computing these weightings/coordinates is fairly heavy (and proportional to the number of points to be morphed multiplied by the number of faces of the cage).
Once these weightings have been computed for a reference cage, computing the morph to a target cage is relatively fast. So as long as the unmorphed geometry and reference cage do not change, morphing to new target cages can be done without recalculating the weightings.
Both the weight computation and the morphing are already multi-threaded (for the version that takes a list of points as the P input), but I do think there’s potentially some further speed up possible with better parallelisation.
Thanks that makes sense now.
Hi Daniel,
Really appreciate the definitions, they work great with meshes.
I was wondering if there’s a way to make the object to deform a NURBS‑Brep instead of a mesh.
Similar to how _CageEdit works with NURBS, but in a custom way where you can use an arbitrary mesh cage like in your definition.
Thanks!
Hi @leex
This version should work with Breps
That’s great, thank you so much, Daniel!
Really glad to hear that.
Happy New Year!
Great to hear! I will test it tomorrow.
Thanks a lot and happy new year!
Hi everyone in this topic.
I am trying to use the deformation tool on subd shoe last but i am very confused because i cannot understand the procedure.When i open the *MeshCageMorpher.gha says that this file not supported by rhino.Please explain step by step how i can use this tool.*I am using Rhino 8 and i know few things about grasshopper.
thank you
Drag and drop the gha onto the Grasshopper canvas.
Goodmorning Martin
Thank you for your reply.Gha file is added into library file.Next step please
Morph your vertices from a reference to a target mesh. You can find an example in a post above.
hello Martin
Thank you very much.I finally understand how it works.
