Hi! I am trying to use SplitMeshWithCurve command as script from C# plugin. But I can’t pass 2 parameters to it from my programm - mesh and curve - the command wants me to pick them with mouse. Is there any way to do it without mouse directly from command line?
Basically you can “simulate” a mouse click by selecting the corresponding object from code. Of course, you must know the ID of the mesh and the curve you want to use.
- RunScript(“SplitMeshWithCurve”, true)
- doc.Objects.Find(meshID).Select(true)
- doc.Objects.Find(curveID).Select(true)
done.