Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 15-05-2007 , 08:32 AM
Registered User
Join Date: Nov 2006
Posts: 27

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

# 2 15-05-2007 , 10:14 AM
vladimirjp's Avatar
Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
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.

# 3 15-05-2007 , 11:44 AM
Registered User
Join Date: Nov 2006
Posts: 27
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.

# 4 15-05-2007 , 12:11 PM
vladimirjp's Avatar
Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
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 01:42 PM.
# 5 07-06-2007 , 06:43 PM
Registered User
Join Date: Nov 2006
Posts: 27
i wrote a mel script. not the fastest but does what it should.
e-anima@gmx.de if you want the code

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