Scatter Brush (Splitter) Meets Physics! (Force of Laziness)

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Rai López
Posts: 2300
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Scatter Brush (Splitter) Meets Physics! (Force of Laziness)

Post by Rai López »

Yeah, I fall in love (as so much people here) with AS physics engine (Ay! my own engine! :D) as soon as I saw it, but even in the most simple test I really encountered like a little pain have to deal with that layer creation/splitting process aaall the time, so... for curiosity & laziness (I wonder which of this two human nature forces will be stronger) I've just started to implement this functionality that I had never thought be so easy to do! :shock:

As you probably still imagine (although I'm not totally sure if "splitter" will be the better word to describe it, the tool creates a new layer for each shape as you go freely painting here and there, so if you are inside a group with Physics activated (or you put'em inside it later), you'll see how each one of they come to "life" and individually reacts as soon as you press play, is that simple! :D So I don't know why so much text :roll:

Of course the best thing of use the Scatter Brush for this, is you get all his advantages at once! Like shape/color variations, pen pressure (where available), freely tracing and, of course, the possibility of use your own clipboarded objects, thanks to all that, it practically becomes into a new physicable Particle engine :) ...Plus! With the new layer management possibilities, you can select all of them (that surely won't be a few), and delete, move, etc in a jiffy, THANKS Ra! :roll:

Well, I hope you like it! And although It's a very rough/young version, I think that you can overwrite the original one (previous backup just in case, of course...) without any problem, or I hope so... Here it is the thing!:

:arrow: lm_scatterbrush.zip


...Enjoy!
Ramón López.
...
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

You beat me to it!

I already have a layer splitter script I just haven't had time to upload.

Mine works a single layer and splits all the shapes into separate layers and numbers the name of the layer after the original name.

-vern
User avatar
Rai López
Posts: 2300
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Post by Rai López »

Jeje, relax! :) Cause, anyway (although related), I think you script still has another kind of use (if it has nothing to do with Scatter Brush as I deduce?) and it still will be useful and time saver for other kind of tasks, cause always will be more quick and comfortable to draw all the elements in only one layer and then split it automatically as yours provide, so... I'm (and sure others) still waiting and interested on it ;)

Well I think we can see it like a different tools for almost same purposes; but yours can be used for a more general tasks and hand made/controlled way of work, and "mine" (quoted cause I only add that little (but magic :D) part of the code), to get more instantaneous and (maybe) expressive way of work, with the functionality directly integrated into one of the most expressive tools, to get it go hand in had with one of the most (with all due respect to Curve Profile) incredible new features.

So, same finality (with more possible uses in your case, BTW :roll:) but different "concept" (that is what I liked more :P), I think.


Greetings and, of course, thanks to continue developing so useful thiiings!
Ramón López.
...
User avatar
Tagirijus
Posts: 87
Joined: Fri May 14, 2010 3:31 am
Location: Germany
Contact:

Post by Tagirijus »

Thanks for sharing. According to your descriptiont it seems to be very useful. I will test it in the evening. :)
User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Nice addition, Ramón :)
thanks
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 2:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Thanks Ramon, great script!
This "splitter" function is great if it also could be used as a stand alone function. :D

Ulrik
User avatar
Rai López
Posts: 2300
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Post by Rai López »

Oh! Feedbacks! I love'em!!! :D So thank youUu guys :)

Yeah, the thing I like most about this little addition was, first, its easy & quick implementation (even for me!) and then the simplicity of the concept and use, that is as I said, you have a Physigroup with (preferably) a "ground" and you only have to "paint" and press Play/Spacebar to see how your traces star to fall and react individually! Jeje, so it's ugly I say it, but I love this kind of simple functionalities :)

ulrik wrote:This "splitter" function is great if it also could be used as a stand alone function.
Jeje, I think I though it! But rapidly I preferred to save me all that still written code :roll:, anyway, for a more "after work" splitting... we'll always have (I hope) the heyvern one!
...
User avatar
Rai López
Posts: 2300
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Post by Rai López »

BTW, surely you still know it, but due to the high number of generated layers (although this is all up to you), don't forget that after the first playback (once the keys you need have been generated) you can activate "Use baked physics (advanced?)" check box inside in the Physics tab of group layer to avoid REcalculation when unnecessary! This way Physics experience become hundreds of times more enjoyable! :D But, BEWARE!!! It's "advanced" :shock:
...
User avatar
Tagirijus
Posts: 87
Joined: Fri May 14, 2010 3:31 am
Location: Germany
Contact:

Post by Tagirijus »

Great, thanks for explaining this feature. I just wondered about this checkbox and I could not find it in the manual. Cool thing ... this ... "advanced" feature, hehe. :)
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 2:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Ramón López wrote:BTW, surely you still know it, but due to the high number of generated layers (although this is all up to you), don't forget that after the first playback (once the keys you need have been generated) you can activate "Use baked physics (advanced?)" check box inside in the Physics tab of group layer to avoid REcalculation when unnecessary! This way Physics experience become hundreds of times more enjoyable! :D But, BEWARE!!! It's "advanced" :shock:
Thanks for explaining that checkbox!
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 3:31 am
Location: New Zealand

Post by funksmaname »

Ramón López wrote::D But, BEWARE!!! It's "advanced" :shock:
LMAO. :)
Post Reply