Long story short...im making a toolset that replicates the one similar in max to make life easier for myself. Here is the button code for extrude: bt0 = cmds.button( label='Extrude Face', width=203, command=cmds.'put command here' ) The command i want is the extrude one exactly the same as the extrude button in the 'Mesh…
Not sure which extrude you're talking about but I think the code you're seeking is: PolyExtrudeFaces; or dR_extrudeTool; Though I'd rather have context sensitive extrude if it was a button than 3 buttons for each component. But I like the context-sensitive marking menus for extrude. A nice way to see what code is being…
Passerby is correct. You could script it another way to run the proper extrude based on selected component, but by your label it seems you want it to only extrude faces. I encourage you to check out the marking menus which is my favorite thing about Maya. They're very fast, you don't have to wait for them to display, just…
if you are using PolyExtrude that isnt possible since PolyExtrude is just a script that runs either polyExtrudeEdge, polyExtrudeFacet, or polyExtrudeVertex based on your selection type. put say you wanted to do a face extrusion with only 1 division you could do this. btn01 = cmds.button(l='Extrude Face', w=203, c=lambda…
thanks guys. working nicely apart form one thing..the extrude comes with 15 divisions by default? how do i set this to just one? This is what i have so far: bt0 = cmds.button( label='Extrude Face', width=203, command=cmds.PolyExtrude )
You probably want to reference the documentation for commands and flags. http://help.autodesk.com/view/MAYAUL/2015/ENU/ Gives you good documentation and example on how to use the commands. See you are talking about the extrude in the modelling toolkit. You definitely want to use the echo all commands Perfect mentioned…
which maya version are you on? if our using 2014 or above there is the modeling toolset built in which has a toolbar that includes most modeling operations, as well as a few modified tools to offer things like pinch control on the connect tool like max users are accustomed too.
So much help :) . I understand what you mean completely with the shift+rmb but this script is just to familiarise myself and any max users picking up Maya for the first time to help them ease in. Once I have the basic modelling tools from Max in one toolbar ported into Maya I will dish it out like candy to anyone that…