SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / Align UV Left, Top, Bottom, Right
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 15-05-2007, 08: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, 10: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, 11:44 AM   #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, 12: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 01:42 PM.
vladimirjp is offline   Reply With Quote
Old 07-06-2007, 06: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.