Anim8or Community

General Category => ASL Scripts => Topic started by: Kubajzz on August 11, 2008, 09:58:48 pm

Title: Kubajzz's toolbox
Post by: Kubajzz on August 11, 2008, 09:58:48 pm
I'll keep updating a list of all the scripts you can find in this topic:




This script will easily remove a point in the middle of an edge (see the image). Just select the points you want to remove and run the script...

If you want to read more about it, see my blog: http://cg-nation.com/community/index.php?action=blog;blog=28;entry=181 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=181)

If you have any problems or suggestions, don't hesitate to post it :)

Edit - attachment removed, newer version of the script is here (http://www.anim8or.com/smf/index.php?topic=1105.msg8144#msg8144)
Title: Re: New mesh clean-up script
Post by: Tanzim on August 13, 2008, 10:52:10 am
Good work, I need this!
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on August 13, 2008, 06:33:26 pm
thanks Tanzim....

Now the script series continues: here is one more script to help you clean up your meshes.

The script will find and select all the malformed faces, then it's up to you to fix them. A malformed face is a concave polygon or a face which is "too much 3D". You can run the script by clicking "Scripts>CheckFaces".

The script "homepage": http://cg-nation.com/community/index.php?action=blog;blog=28;entry=191 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=191)

The script file attached:
Title: Re: New mesh clean-up scripts
Post by: neirao on August 13, 2008, 11:37:11 pm
Excelente!!

neirão- Brazil
Title: Re: New mesh clean-up scripts
Post by: lynn22 on August 14, 2008, 06:49:27 am
This is a really helpful script, many thanks !
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on August 19, 2008, 01:53:23 am
Ok, the mesh-editing scripts series continues...

Two scripts for edge looping - one of them will add an edge loop to your model (select only one of the edges you want to cut!), the other one will remove an edge loop...

There is also a new version of the first script I posted here. It will not mess up your textures now :)

As usual, see my blog to read more detailed description (I'm too lazy to write it twice...): http://cg-nation.com/community/index.php?action=blog;blog=28;entry=207 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=207)

Edit 15.9.2008 - I posted a new version of the "RemoveEdgeLoop" script (a bug fixed)
Title: Re: New mesh clean-up scripts
Post by: neirao on August 19, 2008, 02:46:30 am
very good your scripts,


the "RemoveUselessPoints v2 "was much better in objects textureds.. ;)

i try the "RemoveEdgeLoop" is Excellent.. ;)

..but i no undestand how work the "AddEdgeLoop.a8s". ??  :(

Congratulations for you!

Neirao

Title: Re: New mesh clean-up scripts
Post by: Kubajzz on August 19, 2008, 09:39:58 am
The script to add edge loops works in a very similar way as the "Connect Edges" command - it will cut some edges in half and add a new loop; it's a bit better than the "connect Edges" command, because it will keep the surface rounded. If you want it to work, you have to select only one edge of those you want to cut (see the first image). The script will find the ring of edges and cut them all; remember, all the faces in the ring must be quadrilaterals!

The second image shows how it works in real life... If you want dense edge loops around the eye, select one edge (on the left) and run the script (on the right...).

Tip: if you want to see what the script will do in one particular place, select one edge and press Shift+q ("Quad Ring Select" command) - it will select some edges, the same edges that would be cut by the script (if they form a ring)
Title: Re: New mesh clean-up scripts
Post by: Tanzim on August 19, 2008, 10:50:31 am
The concept of the script seems awesome, I'll have to try it out!
Maybe I should learn to script.
Title: Re: New mesh clean-up scripts
Post by: spicy on August 19, 2008, 02:35:14 pm
Good scripts, this will help alot! Maybe (Like Tanzim said) I should learn some programming
Title: Re: New mesh clean-up scripts
Post by: NickE on August 20, 2008, 10:58:17 pm
Kubajzz,  your scripts are awesome!  I have learned a lot from studying your techique.
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on August 20, 2008, 11:07:14 pm
Kubajzz,  your scripts are awesome!  I have learned a lot from studying your techique.

Oh, really? Nice to hear that... I usually find my technique to be completery wrong and messy, that's why I usually don't bother writing comments into my scripts... Thanks :)
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on September 02, 2008, 09:54:07 pm
One more plugin, this time it's something for complex mesh cleanup.

This script will delete completely useless edges and points and it will select the points and edges you should edit to keep your mesh clean. If you want to make nice clean models, you should run this script everytime you finish a model (especially if you are a beginner...).

You'll find more detailed info about the script in the beginning of the script file or you can check out my blog for even more detailed description: http://cg-nation.com/community/index.php?action=blog;blog=28;entry=262 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=262)

The script file is attached.
Title: Re: New mesh clean-up scripts
Post by: spicy on September 03, 2008, 07:13:45 pm
Thanks for more scripts I hope you continue to do this Kubajzz, keep it up!
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on September 15, 2008, 11:17:46 pm
If somebody cares, I updated my post above (http://www.anim8or.com/smf/index.php?topic=1105.msg8144#msg8144) with a new version of the "RemoveEdgeLoop" script. It works the same way as the original one (select one full loop of edges and run the script), but there's one little bug fixed.
Title: Re: New mesh clean-up scripts
Post by: headwax on September 16, 2008, 12:23:54 am
Thanks Kubajzz

I care :)
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on September 16, 2008, 07:41:18 am
Thanks Kubajzz

I care :)

:)
Title: Re: New mesh clean-up scripts
Post by: Kubajzz on September 16, 2008, 10:35:23 pm
One more script (again...)!!!!

This time it was something quite difficult - reversed Catmull-Clark subdivision plugin.

Select the mesh you want to unsubdivide and run the script. The unsubdivision may take a long time if you work with complex models; you can enable the console output if you want to watch the process. It's STRONGLY RECOMMENDED to enable console output if your model has more than 500 points. The output will be enabled if you create an attribute called "output" (or "Output"). To create the attribute, click "Object>Attributes>New".

See my blog for more detailed instructions, detailed description of the script and explanation how it works:
http://cg-nation.com/community/index.php?action=blog;blog=28;entry=287 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=287)

The script file and demo image are attached.
Title: Re: New mesh clean-up scripts
Post by: fik on September 17, 2008, 01:26:29 am
Wow you are making a lot of good scripts. This last one looks a great one  :)
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on September 21, 2008, 08:22:53 pm
I changed the title of this topic, because it's not only a set of several cleanup scripts any more.

It's becoming something like a wide collection of plugins you can choose from... I've posted 6 plugins so far, here comes #7 and #8 :)

The first one will help you with multiple selections. If you want to select all 43 copies of the same mesh you have created, select one of them and run the script  ;).
It doesn't only work with meshes, it also works with spheres, cubes, cylinders, points, faces and edges. The attached image shows what the script can do in point-edit mode.

The second script is quite simple and it's a useful example if you want to learn ASL (and you may also find it useful as an Anim8or user...). It will select check all the selected points and select the nearest neighbours.
Title: Re: Kubajzz's toolbox
Post by: Steve on September 24, 2008, 05:14:07 am
Fantastic scripts, Kubajzz!
Title: Re: Kubajzz's toolbox
Post by: VBSmiles on September 25, 2008, 02:37:41 am
Ditto!!! ;D ;D I was just inquarring about unsubdivision not long ago. Good to see someone did it !

Never used a script though... but an easier and better way to loop cut would be cool too. ;D
Title: Re: Kubajzz's toolbox
Post by: Steve on October 12, 2008, 09:01:08 pm
Kubajzz, your tolbox scripts have some great ideas.  Mind if I steal some of them for Anim8or?
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on October 12, 2008, 10:12:01 pm
Kubajzz, your tolbox scripts have some great ideas.  Mind if I steal some of them for Anim8or?
Hm, what about the copyright fee? Just kidding of course, feel free to steal anything you like :) What a honor to be robbed by you ;D ;D


Quote from: VBSmiles
but an easier and better way to loop cut would be cool too. ;D
Hey, VBSmiles, I must have missed your post... What do you mean by "an easier and better way to loop cut"?
Title: Re: Kubajzz's toolbox
Post by: sagedavis on October 12, 2008, 11:09:45 pm
Kubajzz
These are fantastic tools ;)
Can I make a suggestion?
go to your first post and click "modify", then you can do a brief write up on each of these scripts and a link to them all, so that folks can get them all at one time without having to remember which post it was that had them.
Thanks again for the cool scripts
Sage
Title: Re: Kubajzz's toolbox
Post by: neirao on October 12, 2008, 11:17:09 pm
excellent!!!
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on October 12, 2008, 11:37:31 pm
Quote from: sagedavis
Can I make a suggestion?
go to your first post and click "modify", then you can do a brief write up on each of these scripts and a link to them all, so that folks can get them all at one time without having to remember which post it was that had them.

Great idea Sagedavis! I've just done that.

Thanks Neirao...

And... Guess what.... One more plugin! This sounds quite stupid, but I got this idea about an hour ago...

The script will connect 2 points of the same face and split the face in 2. You can use the knife tool instead, but sometimes it's easier to select both points and run a script... I've been missing a function like this...

You can select as many points as you want, but not more than 2 points per face. If some face has more (or less...) than 2 points selected, the script will ignore it.
Title: Re: Kubajzz's toolbox
Post by: sagedavis on October 13, 2008, 05:20:41 am
Kubajzz,
Thanks, it's great to have these all in one place. Now when you update them, we can easily get to them.

These are fantastic tools, perhaps not something that I need for all of my projects, but at least they are great to have in the tool box.
Thanks for all your work on it.
Sage
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on October 20, 2008, 11:40:07 pm
I've written one more plugin this morning. This is more a "toy" than a useful plugin, although you'll really need it once you want to create a lot of stones...

This plugin will deform any selected shape randomly. You can select a mesh, subdivision or a parametric shape - the script always creates a copy.

There are 5 attributes you can use:

Check my blog for a bit weird, but detailed explanation:
http://cg-nation.com/community/index.php?action=blog;blog=28;entry=352 (http://cg-nation.com/community/index.php?action=blog;blog=28;entry=352)

The script file, demo image and diversity-smoothness explanation image are attached...
Title: Re: Kubajzz's toolbox
Post by: headwax on October 21, 2008, 02:44:11 am
Many Thanks Kubbajzz

I am even able to spell your name now :)

Now I can get anim8or to run on my laptop I will be abnle to try them out. The join two points and cut face tool looks very handy.

This last one will be great for morphs - and go nicely with morph envy.

cheers and thanjks again

headwax
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on October 21, 2008, 08:21:27 am
Yes, I've read you laptop works now... Congratulations!

Quote from: headwax
I am even able to spell your name now :)

haha, you're a genius!!!
Title: Re: Kubajzz's toolbox
Post by: floyd86 on October 22, 2008, 04:08:08 pm
Many Thanks Kubbajzz

I am even able to spell your name now :)

Now I can get anim8or to run on my laptop I will be abnle to try them out. The join two points and cut face tool looks very handy.

This last one will be great for morphs - and go nicely with morph envy.

cheers and thanjks again

headwax

Hahah, it seems that you still spelled it wrong (it's with 1 'b'  ;D).

Great script kubajzz, (<-- like that headwax  ;)) great to 'dirt-up' models like stones or other models that need to look like they had a beating  :D. many thanks
Title: Re: Kubajzz's toolbox
Post by: almost cool on October 27, 2008, 06:10:53 pm
Well it was handy for my earthen tunnel.Also for abstract work.
Title: Re: Kubajzz's toolbox
Post by: Francesco on November 01, 2008, 11:17:04 pm
Just downloaded the whole package, I seriously need it if I want to use Anim8or at best, this stuff is a must.
Title: Re: Kubajzz's toolbox
Post by: 3Dgeek11 on November 04, 2008, 08:44:44 am
Here's a suggestion. How about Steve putting a bundle of all the "must have"s scripts? And putting it on the main site? And updating it regularly every release of course.

I just downloaded all of them, Kubajzz! They look awesome!!!!! :D (I don't normally use that many smilies, but in this case, it's needed! :D )

Keep it up!
Title: Re: Kubajzz's toolbox
Post by: floyd86 on November 04, 2008, 12:06:30 pm
Here's a suggestion. How about Steve putting a bundle of all the "must have"s scripts? And putting it on the main site? And updating it regularly every release of course.

I just downloaded all of them, Kubajzz! They look awesome!!!!! :D (I don't normally use that many smilies, but in this case, it's needed! :D )

Keep it up!

Good idea, the scriptpage really needs to be update. There so much scripts that are helpfull.
Here is a .zip files with all my scripts, might be helpfull to people who don't have them. Have fun!
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on November 09, 2008, 01:25:57 pm
Yay, thanks guys :) I appreciate your feedback.

Here is one more plugin, this time it's something for all those game-makers in the Anim8or community: poly-reducer plugin.

Select one triangulated mesh and run the script. As far as I know triangulated meshes are usually used in the 3D-games industry, but you may need the Triangulation plugin by Claude (http://www.anim8or.com/ubb/Forum6/HTML/000143.html) and Un-triangulation plugin by NickE (http://www.anim8or.com/smf/index.php?topic=1122.msg9351#msg9351).

Create an attribute called "reducer" to specify the amount of reduction in percent. The default value is 25, you can enter anything between 1 (slight reduction) and 95 (maximum reduction).

Although I tried hard to optimize the algorithm, this script works very slow, it takes about 5-10 minutes to reduce a 1000 poly mesh... If you work with very complex models (3000+ polys), the script execution will probably take too long and I recommend using an external tool. You can abort the script during the execution by creating an attribute called "stop".

The script saves the materials and UV coordinates, but you'll probably have to redo the texturing anyway since the script changes the whole structure of your mesh.

Ok, that's all you need to know :) The script file and demo image are attached below.
Title: Re: Kubajzz's toolbox
Post by: Kubajzz on December 15, 2008, 05:33:37 pm
I updated my post above with a new version of the PolyReducer plugin, it now keeps the materials and UV coords.
Title: Re: Kubajzz's toolbox
Post by: captaindrewi on November 17, 2011, 02:14:35 pm
hi kubjazz
i really love this script and find it massively useful but often i want it to stop before it ends because with a complex mesh it goes on for rather lengthy times beyond where i would like the mesh to go.
it would be useful at times to just have miniscule distortions.
 is there a way it could be stopped by pressing a key?

sorry forgot to mention i'm referring to the 'deform' script :)
Title: Re: Kubajzz's toolbox
Post by: Arik_the_Red on December 24, 2011, 04:26:30 am
Does anyone know what became of Kubajzz? Hasn't logged in for nearly a year :(
Title: Re: Kubajzz's toolbox
Post by: $imon on December 24, 2011, 08:41:41 am
I think he's just busy snowboarding at the moment :) no worries! I'm sure he'll be back sometimes..
Title: Re: Kubajzz's toolbox
Post by: captaindrewi on December 24, 2011, 06:15:34 pm
i may have even asked this question before re deform script..as i have just realised there are attributes that can be adjusted.....i seem to have a feint memory of this now.
though a problem seems to exist when you attempt a sub division of the deformed mesh..again i think i may have encountered this problem before and found a solution but cant remember what...possibly by saving and re importing.