I am trying to achieve something similar to what @jordy1989 is trying to do here - create a dent in an .stl mesh; almost like placing a rock under a sheet although my “rock” has a specific 3d shape. Fortunately the shape of the dent is roughly the same every time although it may be rotated or scaled as desired. I have found that I can achieve the desired dent by using a rectangular CageEdit to the mesh and displacing the cage a predetermined amount.
What I would like the script to do is insert the shape, allow the user to move, rotate and scale the shape to where they want it (the gumball is perfect for this) then apply the cage edit where the shape is. I have everything scripted except the gumball part. Right now the creation of the shape and the Cage Edit scripts are separate to enable the use of the gumball in between however the user has to reselect everything for the second script to work. It would be much easier if this could all be done through one script - hence the desire to use the gumball whilst a script is running.
Is there a way around this?
Thanks for the help!