Group It
This script makes a group from selected objects, it inherit orientation from first selected object.
There is a bug when objects are already part of a group, i'll try to fix it...
update 1.1: the bug with existing groups is solved, it doesn't crash anymore but it needs to explode existing groups before grouping, so it doesn't allow nested groups, i'll try to find a work around for next version.
update 1.2: the update 1.1 created some new bugs... version 1.2 should be ok
update 1.3: bug fix when grouping a single object
update 1.4 : code cleanup
update 1.4.1 : sometimes the pivot point wasn't well centered to the group, at the end of the code i need to open and close the group for the pivot to be updated this is strange but it works ...
update 1.4.2 : the created group is now added to the first selected object layer to make sure that the all group is added to the same layer even if it's not the active layer.
update 1.4.3 : requested by 1rv , the group pivot is now placed at base center.
The nested group problem remain, i've tried different approach that was kind of working, but in certain circonstances (sketchup imported models) it was very buggy and objects ends up in a "freezed" state where you can't move them anymore..
update 1.4.4 : Code Cleanup, thx to TDTrooper, I also finaly got the nested group to work
update 1.4.5 : Bugfix, the new code was also transfering first selected object scale value to the grouphead (the pink box).
update 1.4.6 :Bugfix, the script was crashing when trying to group objects that where members of different "parents" groups, it won't crash anymore, it keeps nested groups that are inside the new group but it will detach the newly created group from it's original groups, ... i'll try to find a better way in next update...
update 1.4.7: I've commented every line as the code has become quite messy and i wasn't able to understand my own code :), i also remove a few unnecessary stuff. I hope i'll find a less messy way of keeping nested groups and deal with objects that are in different groups more elegantly but for now it seems to works fine...
Link to a version without UI:
https://www.mediafire.com/file/adn2m0qdanxiogg/SimonScripts-GroupIt_V1-4...
Comments
you're welcome
It was just one line to change :)
thanks a bunch!
thanks a bunch!
Pivot at base center
i've updated the script ;)
pivot at base center
Simon, is it possible by put pivot at bottom center by default please?
Instead of regular group command I use a script that creates group with pivot at base center - it makes life MUCH easier in 99.99% of cases.
merci :)
merci :)
excellent!
Évident!
Thank you!
You are right, the UI isn't really necessary, the first version i did was without UI, but i noticed that when you have multiple groups to make, it is quite handy to be able to move the button close to the objects you are working on, but without UI you can add the script to a keyboard shortcut or to the quadmenu, i think i will post two versions.
The great idea!
Thanks! Great idea and implementation. But I removed the interface to apply the script faster.