Page 1 of 1

Straighten uuv grid script?

Posted: 02 Apr 2015, 11:39
by Manticor
Hi
A while ago I had a script that straightens uv loops in both directions .If I remember it was made by a Japanese guy ,it worked pretty well aswell but now that Ive reinstalled my system its got lost and I cant find it anywhere.

Does anyone know what this script its (or another that does a similar thing ....that works on xsi 7 )

Many thanks in advance

Re: Straighten uuv grid script?

Posted: 02 Apr 2015, 15:13
by AceMastermind
I'm thinking maybe "UV netalign" by ringpull and myara, available on rray.de

Re: Straighten uuv grid script?

Posted: 03 Apr 2015, 08:10
by Manticor
thats the one ... thanks very much ace

Re: Straighten uuv grid script?

Posted: 17 Mar 2016, 11:37
by CYTE
Hey everyone,
i really would like to use this script. but i cant figure out how to make it work. do i put it in my plugins folder?
where can i find the command then? when i run the script from the script editor in soft i get an error...
im using soft 2015 R2
thanks alot
cheers
CYTE

Re: Straighten uuv grid script?

Posted: 17 Mar 2016, 16:10
by AceMastermind
You can drag the script into a toolbar and make a script button.
Tag some points in the Texture Editor and run the script.
Pick a corner point on the left side of your selection.
Set your options in the ppg and press OK. :)

Re: Straighten uuv grid script?

Posted: 17 Mar 2016, 16:31
by Hirazi Blue
A little more explanation might be useful.
The script (run from the script editor) weirdly throws an “Argument 0 is invalid” error first and then launches a pick session...

Re: Straighten uuv grid script?

Posted: 17 Mar 2016, 16:50
by CYTE
Thanks alot for your replies!
i select samples in the texture editor and press the script button.
it starts "thinking" for about 10 seconds. than it throws an error at me "invalid argument "GetValue""
:(

Re: Straighten uuv grid script?

Posted: 19 Mar 2016, 20:52
by myara
I'm not in front of my PC and I won't until Tuesday. I haven't used this tool for a few months so I can't remember exactly how did it work but I think it was selecting all the UV samples you want to align and then, when you get a pick cursor, select the first sample in the upper left corner.
It will only work on UV grids (squares) and with their UVs "merged".
I'm not sure if it requires to have the component selection mode in samples or not but it probably does.

Re: Straighten uuv grid script?

Posted: 22 Mar 2016, 09:34
by CYTE
Hey myara!
thank you for your help! i really appreciate it. unfortunately i just cant get this script working. i select samples in the texture editor. samples also get selected in 3d view. then i execute the script. there is no picking session for me just an error and it seems that it happens at this line of code :
TE_selfil = GetValue ("Preferences<" & TEPNo & ">.SelectionFilter")
dunno maybe its not campitble with 2015 r2 version of soft?
thanks again!
CYTE

Re: Straighten uuv grid script?

Posted: 22 Mar 2016, 10:09
by myara
I just uploaded a video


This isn't a perfect tool. In fact it doesn't work in a lot of situations:

- It won't work if your UV is too distorted. Use UV Relax before using this tool. Basically it will only work to align an uneven net grid, not a really messed up UV.

- It won't work if you have anything but quadrangles, something like a net shape. If you have triangles or ngons you'll need to cut it and use only the part that resembles a quadrangle grid.

- You will need to select the samples of your object, meaning you have to change your select mode to samples or, change your sync method in your Texture Editor preferences.

Re: Straighten uuv grid script?

Posted: 22 Mar 2016, 11:25
by CYTE
Hey myara!
Thank you so much for your effort! its working now!
the scripts must be in conflict with some other plugin i have installed or something like that.
when i make a new clean user data folder it is working perfectly!
thank you for your help!
cheers
CYTE