Hi everyone 🙂
I was woundering if it was possible to add a specific mesh as a shortcut, like polygons primitives.
I use this mesh very often (this mesh http://prntscr.com/5tl29k), andI would like to have that in my scene without: create a polypipe, adjust the segments, delete the extra faces..and so on...
I use that to create holes in 3d models.
There is a way to do this?
Thanks
You will have to do it with MEL or Python. You could echo your commands in the script editor while making it and come up with the code to get it done once like this:
polyPipe -ch on -o on -h 1 -sa 6 ;
doMenuComponentSelection("pPipe1", "facet");
select -r pPipe1.f[0:5] pPipe1.f[12:23] ;
doDelete;
select -r pPipe1 ;
CenterPivot;
Then while selected in the script editor middle drag it to your shelf. This will only work in a scene with no other polyPipe in it named pPipe1. You would have to work out the code (which I have done before) to make it work while creating more than one per scene.
Yea it worked!
I already know that you can run scripts by middle mouse dragging them in the shelve, but i didnt tought about that possibility 🙂
Just a last thing: can I put a name on the script button?
You can put a Icon label but will only allow for 4 characters. Go to Shelf Editor click the shelf and shelf content you want to edit and add the four characters you want shown on the icon in the Icon Label area.
If you make your own icon you could integrate the name into that as well.