Toggle navigation
Polycount
News
Forums
Patreon
Challenges
Quarterly Character Art Challenge
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Sign In
·
Register
Author:
Chris186
Home
›
Technical Talk
Mel script Q
motives
polycounter lvl 18
Offline /
Send Message
motives
polycounter lvl 18
Sep 2006
Anyone got a melscript or know how to make one that makes it possible to copy UV's to UV Sets with multiple obejcts selected?
0
·
Share on Facebook
Share on Twitter
Replies
Offline /
Send Message
tremulant
polycounter lvl 17
Sep 2006
I dont know of any, but you should check out fat asians stuff if you haven't, he could have something similar.
http://www.jhaywood.com/maxScripts.htm
just in case you didnt see it before.
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
motives
polycounter lvl 18
Sep 2006
yea those maxscript's will sure come in handy in maya
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
motives
polycounter lvl 18
Sep 2006
ahh noone? i was really hoping on this one heh
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
Eric Chadwick
admin
Sep 2006
Too bad there isn't a Scriptspot for Mel.
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
motives
polycounter lvl 18
Sep 2006
Well i did see that highend3d has a somewhat active forum for Mel. Gonna try my luck there aswell
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
Scott Easley
Sep 2006
Highend3d is a phenomenal resource for MEL scripts.
You might also want to check out cgtalk.com's Maya MEL forum -- they have a lot of good advice.
cgtalk MEL forum
However, in case you want to just copy one set of UV from one model to another, you can do the following:
1) Select the model you want to transfer the UVs from, then the model you want them to go to.
2) While in Model mode, select 'Polygons --> Transfer (OptionBox)'.
3) When the option box comes up, make sure you have 'UV sets' selected. When you hit either 'Apply' or 'Transfer' it should work for you.
This same process may work for multiple objects -- never tried it, myself.
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
motives
polycounter lvl 18
Sep 2006
thanks scott. While that worked it was not exactly what i want. I want to copy uv's from one set to another on the same object. Sofar (with a little help from highend3d!) i come up with this:
string $objname[]=`ls-sl`;
for( $i=0 ; $i<(`size($objname)`); ++$i){
select -r ($objname[$i]);
polyCopyUV -uvi "map1" -uvs "TexCoord1" -cm 1 -ch 1;
};
select -r ($objname);
its a start, now i have a shelfbutton which i can copy uvs from map1 to texcoord1
Next up is to try and make it copy from a current set instead of map1 and then (in my dreams) define what set to copy to in a little UI
0
·
Share on Facebook
Share on Twitter
Sign In
or
Register
to comment.
Replies
http://www.jhaywood.com/maxScripts.htm
just in case you didnt see it before.
You might also want to check out cgtalk.com's Maya MEL forum -- they have a lot of good advice.
cgtalk MEL forum
However, in case you want to just copy one set of UV from one model to another, you can do the following:
1) Select the model you want to transfer the UVs from, then the model you want them to go to.
2) While in Model mode, select 'Polygons --> Transfer (OptionBox)'.
3) When the option box comes up, make sure you have 'UV sets' selected. When you hit either 'Apply' or 'Transfer' it should work for you.
This same process may work for multiple objects -- never tried it, myself.
string $objname[]=`ls-sl`;
for( $i=0 ; $i<(`size($objname)`); ++$i){
select -r ($objname[$i]);
polyCopyUV -uvi "map1" -uvs "TexCoord1" -cm 1 -ch 1;
};
select -r ($objname);
its a start, now i have a shelfbutton which i can copy uvs from map1 to texcoord1
Next up is to try and make it copy from a current set instead of map1 and then (in my dreams) define what set to copy to in a little UI