Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   Align UV Left, Top, Bottom, Right (https://simplymaya.com/forum/showthread.php?t=26256)

e-anima 15-05-2007 08:32 AM

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

vladimirjp 15-05-2007 10:14 AM

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.

e-anima 15-05-2007 11:44 AM

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.

vladimirjp 15-05-2007 12:11 PM

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 )

e-anima 07-06-2007 06:43 PM

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


All times are GMT. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018