Anim8or Community

General Category => ASL Scripts => Topic started by: Kubajzz on December 26, 2009, 04:00:04 am

Title: Universal mirroring plugin
Post by: Kubajzz on December 26, 2009, 04:00:04 am
Here is a little Christmas present from me ;)

As you surely know, the built-in "Mirror" command in Anim8or only works if you select a single mesh.

Would you like to be able to mirror several meshes at once? And what about mirroring spheres, cylinders and cubes? And parametric meshes! And subdivisions! And groups...

Now you can do that! Thanks to $imon, who gave me the idea to write this plugin...

The usage is quite simple. Select any number of shapes and run the script. The axis is determined from the GUI settings using these 3 buttons: (http://www.anim8or.com/manual/buttons/b_xyz_sss.gif)

The current version of ASL has limited capabilities when working with groups, parametric meshes and subdivisions. If you mirror a group, the result will not be grouped. Parametric meshes and subdivisions are mirrored, but the result will be converted to mesh.

The script is attached below, I hope you'll find it useful. Any feedback is greatly appreciated!

Merry Christmas to all!
Title: Re: Universal mirroring plugin
Post by: ENSONIQ5 on December 26, 2009, 09:22:36 am
Great work Kubajzz!  Up to now I have not downloaded any scripts or plug ins, preferring to solve basic modelling problems myself, but this one I just can't do without.  It will take the inaugural plug in position on my GUI.

EDIT:  Downloaded, installed and tests perfect!  Thanks, this will be HUGELY useful!
Title: Re: Universal mirroring plugin
Post by: neirao on December 28, 2009, 02:37:06 pm
hi Kubajzz,
thanks for more this useful script !! amazing! :o
 ;)


only problem is the limitation "inside of Anim8or",
because not has(yet) comand for work with "convert to subdivided"
and when mirror duplicate de subdived meshes, the copy is convert
to mesh. 

but is excelent script!!

thanks again!

Happy New Year
Title: Re: Universal mirroring plugin
Post by: captaindrewi on December 29, 2009, 01:37:07 am
great, thanks kubjazz very kind of you.
a merry christmas and happy new year to you.
downloaded and working well.
 
Title: Re: Universal mirroring plugin
Post by: Andy_Rch on January 12, 2010, 08:13:28 pm
Hello Kubajzz,

would it be possible to upload your script to a place, where we can download it, because this forum doesn´t work correct.

Many thanks.


AndyRch
Title: Re: Universal mirroring plugin
Post by: Kubajzz on January 14, 2010, 04:40:56 am
You can find this plugin in the ASL database...
Title: Re: Universal mirroring plugin
Post by: Andy_Rch on January 14, 2010, 05:17:02 pm
Thanks Kubajzz,

my fault.
I should searching this forum more intensive in the future ^^
Title: Re: Universal mirroring plugin
Post by: $imon on January 15, 2010, 11:05:38 am
Thanks so much Kubajzz! Great plugin, works good too. I'll be using this one a lot :)
Title: Re: Universal mirroring plugin
Post by: $imon on January 18, 2010, 12:25:35 am
Oh .. just wondering.. would it be possible to keep the edge properties when mirroring an object? I usually put the smooth angle of an object to 180, then sharpen the edges accordingly. When mirroring with your plugin, these edge properties disappear. It doesn't matter too much, since only half the trian will be directly visible, just think it would improve the plugin!
Title: Re: Universal mirroring plugin
Post by: Kubajzz on January 30, 2010, 06:53:33 pm
Thanks for the feedback Simon.

I tried to edit the script to save the edge sharpness settings, but I can't get it to work.

Don't ask me why, there might be a bug in the SetEdgeSharpness() or GetEdgeSharpness() functions, I really don't know... So I have to disappoint you.