Anim8or Community

General Category => ASL Scripts => Topic started by: Suppastar on February 13, 2009, 12:46:59 am

Title: Script Request: Flatten line?
Post by: Suppastar on February 13, 2009, 12:46:59 am
Can anyone make a script that acts like "flatten" command, but works with just lines?

I have a hard time fixing all the lines that were made crooked or wrong, just wondering if anyone could make a script that could do this for me?
Title: Re: Script Request: Flatten line?
Post by: Tanzim on February 13, 2009, 01:34:52 am
You could just merge points...
Title: Re: Script Request: Flatten line?
Post by: Suppastar on February 13, 2009, 01:47:34 am
Sorry, that's not what I'm talking about, I'm talking about this...


Selecting the Messed up/Crooked Lines, and using "Flatten Lines", flattens them into image #2.

The same effect as the original "Flatten" does , but that only works on faces, not lines.
Title: Re: Script Request: Flatten line?
Post by: hihosilver on February 13, 2009, 02:34:36 am
I agree, it would be a nice script, though there would have to be two, one vertical and one horizontal (could it be view dependent? or would it have to be axis dependent?)
Title: Re: Script Request: Flatten line?
Post by: neirao on February 13, 2009, 08:53:29 am
Hi Suppastar, :)

see this script in link:
http://www.anim8or.com/cgi-bin/postings.cgi?action=reply&forum=ASL+Scripts&number=6&topic=000032.cgi&TopicSubject=Snap+to+point+script&replyto=8

or direct download:
http://homepage.ntlworld.com/w.watson3/main/files/Snap2Pnt.zip

this script work like you want, in Axis Y...!

but if modifiqued the code, work full in axis Y and X... :)

[]s
Title: Re: Script Request: Flatten line?
Post by: Monex on February 13, 2009, 09:05:18 am
I was just wondering, if you could use the two points at the end, to make a strait line to align the points and could do it in 3d :)
Title: Re: Script Request: Flatten line?
Post by: Suppastar on February 13, 2009, 12:59:17 pm
Thanks everyone


@Neirao

Thanks for that script, but that was for snapping points together, not straightening out the lines.



Basically as I said, we just need a script that acts like the original Flatten command in anim8or, but works with lines and points also. I can't tell you after hours and hours of point modeling, some of the lines are at a slight angle.  Which on some models can ruin the look, if we had script that could make sure the lines are straight it would make modeling a lot easier.



This is script that I think everyone would use, maybe Steve could implement a version of it with command prompt like the original flatten command, or even work it into the original some how?
Title: Re: Script Request: Flatten line?
Post by: Claude on February 13, 2009, 10:17:17 pm
Neirao
This is version 1.0,the most up to date:
http://www.anim8or.com/smf/index.php?action=dlattach;topic=1309.0;attach=1725
Title: Re: Script Request: Flatten line?
Post by: neirao on February 16, 2009, 07:55:14 am
@ Suppastar:
the script work... but for not "join" all the points, we have then unselect the axis then not want mover the points..in (http://www.anim8or.com/manual/buttons/b_xyz_sss.gif), please try again OK  ;)

@Claude: thanks!