Anim8or Community
General Category => ASL Scripts => Topic started by: Kubajzz on August 11, 2008, 05:58:48 pm
-
I'll keep updating a list of all the scripts you can find in this topic:
- Remove Useless Points (http://www.anim8or.com/smf/index.php?topic=1105.msg8144#msg8144) (description below, follow the link for the latest version!)
- Check Faces (http://www.anim8or.com/smf/index.php?topic=1105.msg7973#msg7973) - selects all malformed faces
- Add Edge Loop (http://www.anim8or.com/smf/index.php?topic=1105.msg8144#msg8144) - adds a new edge loop and keeps the surface rounded
- Remove Edge Loop (http://www.anim8or.com/smf/index.php?topic=1105.msg8144#msg8144) - removes an edge loop and restores the faces
- Complex Clean-up (http://www.anim8or.com/smf/index.php?topic=1105.msg8892#msg8892) - removes points and edges with no attached faces
- Unsubdivision (http://www.anim8or.com/smf/index.php?topic=1105.msg9368#msg9368) - reversed Catmull-Clark subdivision
- Select Similar (http://www.anim8or.com/smf/index.php?topic=1105.msg9635#msg9635) - self explaining...
- Grow Point Selection (http://www.anim8or.com/smf/index.php?topic=1105.msg9635#msg9635) - selects the nearest neighbours of selected points
- Connect Points (http://www.anim8or.com/smf/index.php?topic=1105.msg10490#msg10490) - connects 2 points of the same face and divides the face in 2
- Deform (http://www.anim8or.com/smf/index.php?topic=1105.msg10829#msg10829) - converts any shape into "potatoid" using random deformations
- Poly reducer (http://www.anim8or.com/smf/index.php?topic=1105.msg11651#msg11651) - simplifies a triangulated mesh by percentage
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)
-
Good work, I need this!
-
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:
-
Excelente!!
neirão- Brazil
-
This is a really helpful script, many thanks !
-
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)
-
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
-
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)
-
The concept of the script seems awesome, I'll have to try it out!
Maybe I should learn to script.
-
Good scripts, this will help alot! Maybe (Like Tanzim said) I should learn some programming
-
Kubajzz, your scripts are awesome! I have learned a lot from studying your techique.
-
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 :)
-
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.
-
Thanks for more scripts I hope you continue to do this Kubajzz, keep it up!
-
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.
-
Thanks Kubajzz
I care :)
-
Thanks Kubajzz
I care :)
:)
-
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.
-
Wow you are making a lot of good scripts. This last one looks a great one :)
-
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.
-
Fantastic scripts, Kubajzz!
-
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
-
Kubajzz, your tolbox scripts have some great ideas. Mind if I steal some of them for Anim8or?
-
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
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"?
-
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
-
excellent!!!
-
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.
-
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
-
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:
- strength - the higher number, the more distorted your shape will be. Default value is 2.5
- diversity - you can enter any value from 0 to 1. The higher value, the more "complex" the final shape will be. Values higher than 0.3 usually don't give good results, default value is 0.08
- smoothness - the higher value, the smoother surface. This is not the opposite of diversity (see image below). Default value is 12.0
- seed - an integer attribute, you can change the random seed
- refresh - the script is automatically refreshing the screen while the shape is being deformed. You can disable this function by creating an attribute called "refresh"
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...
-
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
-
Yes, I've read you laptop works now... Congratulations!
I am even able to spell your name now :)
haha, you're a genius!!!
-
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
-
Well it was handy for my earthen tunnel.Also for abstract work.
-
Just downloaded the whole package, I seriously need it if I want to use Anim8or at best, this stuff is a must.
-
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!
-
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!
-
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.
-
I updated my post above with a new version of the PolyReducer plugin, it now keeps the materials and UV coords.
-
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 :)
-
Does anyone know what became of Kubajzz? Hasn't logged in for nearly a year :(
-
I think he's just busy snowboarding at the moment :) no worries! I'm sure he'll be back sometimes..
-
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.