PDA

View Full Version : create object in specific location


womanonfire
10-08-2002, 07:55 PM
is there a way to have an object created at coordinates other than 0,0,0 ? some script that allows you to pick a point in space and say "create object here" perhaps???

dmcgrath
10-08-2002, 09:53 PM
If you know the exact position of what you want to make and where, you can type it into the white field at the bottom of the screen (the MEL command line)

EX: sphere -p 0 2.3345 11.024;

But unless you already have something in space at a certain place, there will be no way for you to pick a specific point there.


Are you trying to do something specific with this?

womanonfire
10-08-2002, 11:20 PM
thank you for your reply! and the script tip.

this is more of a general wish i suppose....
for example, i have several rooms of a house built and i need to make an object in one of the rooms, i find myself constantly doing poly/create cube and having to scroll back to 0,0,0 to find it then move it where i need it to be i would love to have some way to place some marker down and have that be the origin where the cube is created.

I got used to the way one can "draw" objects in 3dsMax just anywhere... but closer to what i mean is like in Blender there is a little crosshair that you can place in 3d space and wherever you put it is where your next object will be created. handy that is.

dmcgrath
10-08-2002, 11:30 PM
No, sorry as far as I know, there wont be any way to create anything in maya that wont be created by default at the 0 0 0 world coordinates.
As a handy reminder, if you create something and you dont see it in the current view, hit the F key and that will frame up the selection. Hitting the A key will frame All objects, as well.

If you want to "draw" a poly object at a certian place, that can be done as well. Look under the polygon tool set and use the create polygon tool, just remember to draw in a counter clockwise fashion. That will make it so the normals face outward.

bigfatMELon
10-09-2002, 02:09 AM
Not sure if this helps but you can always Freeze Transformations on the translation of any object, thereby setting it's local position to zero. This isn't exactly the same as creating an object at location that is marked as zero but... well, there you have it.

-jl

wrend
10-09-2002, 04:03 AM
just MMB snap it to something in your port's view that is close to where you want it. ping!

womanonfire
10-09-2002, 07:09 AM
is "MMB snapping" a Maya 4.5 thing? i am only using 4.

MasonDoran
10-09-2002, 09:19 AM
wrend is right....i do the MMB all the time in 4.o.....once u create an object, it is selected by default....so just hold the V key....and then mmb drag select a vertex of where you want the object to move to.....this way u dont even have to use F or A to view the object...it is just redundant. U can also use C key if you want to snap it to nurbs object or a an edge.

:tip: while modeling with polys you can MMB drag verts along their edge if you hold the C key

womanonfire
10-10-2002, 07:59 AM
o wow it works !
thank u thank u

webster
10-10-2002, 12:19 PM
Hi,
the command You are searching is Shift+g.

Creata a cube, move your mouse somewhere in the modelling view and hit ´Shift + g´. It will place the last created Object (as far as i could see) at the Position of the mouse.

BUT it has a little bit of offset, maybe it does not consider the menu-line and the shelf. If could live with the offset.

Just try and you´ll see,

webster

MasonDoran
10-10-2002, 12:41 PM
i just tried fiddling with your suggestion webster....i cannot seem to get controllable or predictable results....the offset is so significant that it seems to be an unusable feature

webster
10-10-2002, 12:59 PM
Hi,

hide all Your UI stuff, ALL.

when you just see your fullscreen (modelling view) only, no pane specific menu or main menubar, it´s exactly at mouse position.

If you need it often, just assign hide and restore UI-elements to hotkeys.

hope it helped,
webster

womanonfire
10-10-2002, 03:43 PM
hmmm... Shift+G seems to duplicate and move the object... what is this command called ?

webster
10-11-2002, 01:19 PM
Hi,

Script editor -> Script -> Echo all commands, then do the (any) procedure

RepeatLastActionAtMousePosition;
{float $pos[] = `autoPlace -um`;repeatLast;move $pos[0] $pos[1] $pos[2];};


webster

CGTalk Moderation
01-13-2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.