Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How Do I Get Maya 2016 To Create New Primitives At The Origin Of The Grid..?

How Do I Get Maya 2016 To Create New Primitives At The Origin Of The Grid..?

Anonymous
Not applicable
1,040 Views
2 Replies
Message 1 of 3

How Do I Get Maya 2016 To Create New Primitives At The Origin Of The Grid..?

Anonymous
Not applicable

Hello everyone!

 

Whenever I create a new primitive shape such as a Cube or Sphere etc it always creates it in the middle of the grid, is there a way of creating all primitives so that they appear on the grid surface at the grid's origin..? I know that I can adjust the pivot point to a corner and use X to snap it to the grid but this takes time and effort. Is there something in the Preferences that I'm missing..?

 

Many thanks in advance for any help. 😄

0 Likes
1,041 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hey,

you can use a mel command:

Save each 2 Lines into a new custom shelf:

Cube:
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
move -r -os -wd 0 0.5 0;

Sphere:
polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;
move -r -os -wd 0 1.0 0;

Cylinder:
polyCylinder -r 1 -h 2 -sx 20 -sy 1 -sz 1 -ax 0 1 0 -rcp 0 -cuv 3 -ch 1;
move -r -os -wd 0 1.0 0 ;

Open the Script Editor and C&P your desired 2 lines into the MEL script window. Than press save script to shelf and done.
0 Likes
Message 3 of 3

dave.rose
Advocate
Advocate
you could turn on 'interactive creation' in the Polygon Primitives menu. This will create your objects above the grid and you can use grid snap for exact sizing. Doesn't work on a sphere or torus though.
0 Likes