Digital humans the art of the digital double
Ever wanted to know how digital doubles are created in the movie industry? This course will give you an insight into how it's done.
# 1 28-12-2013 , 11:57 PM
Registered User
Join Date: Dec 2013
Posts: 3

Vertex world positions?

I'm trying to get two vertices to match along an axis but, I don't know how to view and change their world positions. How do you view them?

Thanks,
Kirahl.

# 2 29-12-2013 , 12:08 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Have you tried the snapping tools?


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 3 29-12-2013 , 12:24 AM
Registered User
Join Date: Dec 2013
Posts: 3
They don't line up along that axis, just move a certain amount from their original spot.

# 4 29-12-2013 , 02:26 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Make sure "Retain component spacing" is turned off in the move manipulator's option box.


Imagination is more important than knowledge.
# 5 30-12-2013 , 04:50 PM
Registered User
Join Date: Dec 2013
Posts: 3
Still doesn't do what I want. It only works in keeping near vertices in line, not spaced ones. I would like an answer to the title of the thread, is there anyway to view and edit a specific vertex's world position?

# 6 30-12-2013 , 09:11 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Using MEL, yes.

Code:
{
	//Get a list of all selected components
	string $selection[] = `ls -sl`;
	float $coord[];
	
	//Using a 'for' loop to print out world positon of components 
	for($component in $selection){
	
		$coord = `xform -q -ws -t $component`;
		print ($component + " world positionX:    " + $coord[0] + "\n;");
		print ($component + " world positionY:    " + $coord[1] + "\n;");
		print ($component + " world positionZ:    " + $coord[2] + "\n;");
		print ("///////////////////////////////////////////////////////\n;");
	}
}


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads