simon9
(Simon)
May 7, 2025, 10:52am
1
Hi ,
I am trying to make a macro for the shrinkwrap command. I want to set all options by the macro, but I would still like to control the resolution myself. How can I achieve this?
I’ve tried many things, starting to doubt if it is even possitble?
!_-ShrinkWrap PolygonOptimize=10 FillHoles=On DeleteInput=Off Preview=On DrawWires=Off HideInput=On SaveSettings=On
Tom_P
May 7, 2025, 11:20am
2
something like this - but this crashes my mac when run a second time
be careful.
!_-ShrinkWrap PolygonOptimize=10 FillHoles=On DeleteInput=Off Preview=Off DrawWires=Off HideInput=On SaveSettings=On Resolution=20 _pause _Preview=On _pause _Resoltuion _pause _enter
ok the crash is repeatable:
playing around with a macro for above topic i managed to crash my intel mac when the macro is run a second time.
!_-ShrinkWrap PolygonOptimize=10 FillHoles=On DeleteInput=Off Preview=Off DrawWires=Off HideInput=On SaveSettings=On Resolution=20 _pause _Preview=On _pause _Resoltuion _pause _enter
i just had drawn 2 Spheres with around 80mm.
The file is lost because of the crash - sorry.
sent crash / error report
{"app_name":"Rhinoceros","timestamp":"2025-05-07 13:18:35.00 +0200","app_versio…
kind regards - tom
simon9
(Simon)
May 7, 2025, 12:12pm
3
There’s a typo near the end there “_Resoltuion”, dunno if that causes the crash though
Tom_P
May 7, 2025, 1:52pm
4
Simon:
that causes the crash
a typo should not cause a crash, it still crashes with correct spelling.
back to your topic:
best do it with a script.
Shrinkwrap
there are a few post that might serve as a startingpoint:
Hi, I’m fairly new to Python but I’m trying to put something together that will cycle through layers/objects in a rhino project and run the shrink wrap function, As far as I can wrap function is being applied on the input meshes but nothing is being created or output.
The printed layers shows all layers in the model, and you can see each mesh being selected as part of the last few lines added for debugging.
Has anyone had any success using Mesh.ShrinkWrap ?
import rhinoscriptsyntax as rs
impo…
A whole bunch, but it’s likely because of how CPython interfaces with RhinoCommon (i.e. using Python.Net), where IronPython is written in C# and can implement it directly. So there’s some considerable hoop jumping/performance issues involved on the CPython side of things.
and chat gpt is very good in helping you to fine-tune.