[Plugin] Draw Boundingbox
-
@FlorinAp
You can probably modify that using Claude.ai which is pretty capable of editing ruby scripts for Sketchup, as long as you are accurate enough in the description of the changes that you need in the code.
That said, I recommend to be really careful when you mess with plugin logic.Looking at the example in the image above, the shape clearly looks created using SubD.
- If you create the construction geometry inside the group, it will be destroyed (regardless that you put in another layer or not) whenever you toggle the subdivisions.
- If you create the construction geometry it in a nested group, subdivision will not work anymore, due to the nested instances "illegal" condition.
- The cleanest (and the only working) solution would be creating a father group with 2 subgroups inside (one for the subdivision geometry and one for the construction geometry), but then you need to open the father group whenever you need to edit the subdivisions.
It's something that probably is better managed grouping the construction geometry manually depending on what you are trying to achieve in a given situation rather than having it hardcoded all the times.
If you hardcode it in the plugin, probably it could be handy in some situations, but will be more cumbersome in other situations.
Please notice that in order to achieve the same result you could look into Fredosketch plugin or Axyz plugin.
Both of them share an inbuilt logic for bounding box snapping.
Each of them has its advantages in therms of usability.- Fredosketch can be quickly launched pressing "M" key shortcut twice in order to replace the Sketchup native move tool when needed.
- Axyz allows moving with a gizmo, and also has an option to enable/disable the bounding box preview.
Both of them can do a lot more.
I recommend taking a look at both before messing with code on this one. -
@thomthom Congratulations, I use it often and it is very useful. I only ask you for a small change. It would be nice if once the box is created you group it. Thanks
-
@panixia Everything you wrote is much too much for me.!
I usually don't do things that i don't fully understand, and right now i have personal reasons for which I can't afford to explore unknowns.!Bounding Box doesn't need to be inside, but I've seen that Anchor Points do it this way.......
But grouping it and putting it in a separate tag would be very nice.
Advertisement