Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 15-05-2007, 09:32 AM   #1
e-anima
Registered User
 
Join Date: Nov 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Align UV Left, Top, Bottom, Right

hi,

in the uv texture editor there is an option alignUV min. value, max value in U and V. Does anybody know the mel command (function) for this. Its because i want to put shortcuts to my arrow keys.

thx
e-anima is offline   Reply With Quote
Old 15-05-2007, 11:14 AM   #2
vladimirjp
Subscriber
 
vladimirjp's Avatar
 
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
Thanks: 0
Thanked 4 Times in 3 Posts
Default

you can use the polyEditUV command.
or in your place2dTexture node, in the 2dplacement attributes
you can clamp the coverage of the texrtues even better. using the coverage and translate frame options.
vladimirjp is offline   Reply With Quote
Old 15-05-2007, 12:44 PM   #3
e-anima
Registered User
 
Join Date: Nov 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i already opened the script editor to see what mel command is executed. i saw that polyEditUV is used but
don´t exactly know how to get the min uv. the part after u must be the min/max value to what ist is aligned.

select -r pCube1.map[4] pCube1.map[6] ;
polyEditUV -r off -u 0.19682841;

undo gets:

// Undo: alignUV 1 1 0 0 //

these three bits seem to be for max/min u and v.
e-anima is offline   Reply With Quote
Old 15-05-2007, 01:11 PM   #4
vladimirjp
Subscriber
 
vladimirjp's Avatar
 
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
Thanks: 0
Thanked 4 Times in 3 Posts
Default

the U is the placement along the U [or x] in 0 -1 texture space.

i think what you are after may be in the 2dTextureNode placement options.

look in the docs for other flags for the polyEditUV command other than the defaults the script editor spits put.
unless by align you mean snap?
i dont think align UV is a command, it snaps the UV's to the highes point or lowest point in U or V, this can be done manually. its not a way to clamp the UV to a specific position.
(i.e. U .98 V .34 )

Last edited by vladimirjp : 15-05-2007 at 02:42 PM.
vladimirjp is offline   Reply With Quote
Old 07-06-2007, 07:43 PM   #5
e-anima
Registered User
 
Join Date: Nov 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i wrote a mel script. not the fastest but does what it should.
e-anima@gmx.de if you want the code
e-anima is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.