while using the Insert button in the subtool palette is there a way to get the inserted tool to insert at the same position and bounding box size of the subtool that is in use (above newly inserted tool)?
I’m sure there is a way to do this with scripting but i don’t know where to start.
I may have misinterpreted your question. It will come in at world center unless you load it from a script telling it something otherwise. If first you Append it, the tool that was selected will still be selected. You could move it down
sorry that’s not what i meant, but the world center is part of the problem.
For instance say i have a tool (A) off to the side of the world axis, i want to use the Insert button (not Append) to insert a selected tool (B) to the same pivot point of tool (A) and also to be within the same size relatively. This way i don’t have to continually scale and move a newly inserted subtool to the place and size of another.
I figure the script would sort of work like this:
have target subtool selected
zscript will use TransformGet
then press button Tool:subtool:Insert
select new tool
will then use TransformSet using the variables collected above.
this is beyond me as far as scripting goes.
Have you looked in the scripting section. There is 1 script involving positioning that might help.
well i tried looking into the zscripting and as i thought i’m clueless
Marcus just wrote a script that sort of does what you want. See this thread:
It looks like it will move your subtools into position (but not size).
I would think that based on this, the script should be able to be modified to do size as well as location.
EDIT: Doug beat me to it (I didn’t realize it was the same link).
Yes! thank you both, i posted in that thread, hopefully it can be done but the script already is really useful, thank you for finding that thread for me.