Hi, I am trying to automate the “squish” command on multiple meshes, but I would need for every mesh to transform also a set of curves (as the command normally allow as second input). While I manage squishing the mesh I can’t find a way to select the curves.
This is where I got to with the code:
import rhinoscriptsyntax as rs meshSurface = rs.GetObject("mesh",32) crvs = rs.GetObjects("crvs", 4) rs.Command("_-Squish _SelId %s _Decorate=Yes _Enter _SelId %s _Enter " % (meshSurface,crvs), False)
What I have and what I would like to achieve ( file attached as well)
I guess the issue is the string I have to input in rs.command to be able to select multiple ids for the curves after the mesh is selected. Any suggestions on how to do this?
as always many many thanks in advance
squish with crvs.3dm (417.3 KB)