Community
Maya Modeling
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya modeling topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add a mesh as shortcut

6 REPLIES 6
Reply
Message 1 of 7
Thiird
464 Views, 6 Replies

Add a mesh as shortcut

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

 

 

 

 

6 REPLIES 6
Message 2 of 7
damaggio
in reply to: Thiird

Image has to be a jpg...please post another one.

Message 3 of 7
Thiird
in reply to: damaggio

Ok, sorry, here it is:

Message 4 of 7
tsefreeflow
in reply to: Thiird

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.

 

Message 5 of 7
Thiird
in reply to: tsefreeflow

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?

Message 6 of 7
tsefreeflow
in reply to: Thiird

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.

Message 7 of 7
Thiird
in reply to: tsefreeflow

Perfect, thank you very much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report