It is currently Fri Jun 21, 2024 1:01 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Assignment: create an animated brush to make clock face.
PostPosted: Tue Mar 24, 2020 9:38 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
GIMP Version: 2.8.14
Operating System: Linux
GIMP Experience: Experienced User



Greetings, everyone.

By way of experimenting to see if I could get my stretchy head around how an animated brush functions, I set myself the task of creating a brush which could be used to stroke a circular path with the result that 4 numbers would appear at the right locations and in the right rotations around the dial.

Initial results, with four numbers, XII, III, VI, and IX, have only created mystery, and I think I have a new stretch mark and something tore.

I admit I only skimmed the documentation covering GIH (animated brushes|image hoses), but figured I'd be able to figure out most of it by making a simple one and observing it in application. Um, no. The 4 numbers are printing backwards, and I can't quite figure out which way the layers print.

Not really helping my understanding is the apparent necessity to save the brush with the rank set to "angular" which however also requires that the stroke be instructed to "emulate brush dynamics." Also necessary is that the, or at least 'an', appropriate "Dynamics" be selected on the Brush options tab. The working of a dynamics matrix is not obvious, but I searched and found information on creating a new one, so I made a new one with, only, "angle" tied to "tilt."

The third screenshot is of 4 layers; the question is:
* How to save them as an animated brush which prints numbers (in whatever the default order is) at rotations of 0, 90, 180, and 270?

The second screenshot is of the choices I made.

The first is the result of Edit->StrokePathing the red and blue paths and painting manually in green starting at 12 o'clock.

Comments are welcome. Derision is fine. My burning question is: "Is it even possible to create a brush of, say, eight compass arrows such that 'stroked' items will show the arrows pointing in 'correct' directions?"

I thank you and I am happy to be down among the magnolias again. (From the Red Skelton movie, "A Southern Yankee.")
--
gramp


Attachments:
File comment: Brush options and results.
Woot4.png
Woot4.png [ 108.9 KiB | Viewed 13387 times ]
File comment: Chosen settings: save-as .GIH.
Woot2.png
Woot2.png [ 33.08 KiB | Viewed 13387 times ]
File comment: The 4 layers.
Woot.png
Woot.png [ 10.61 KiB | Viewed 13387 times ]

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Tue Mar 24, 2020 11:19 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13063
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
This is the best I can do with simple numbers,
but I was able to get it to work,
somewhat anyway.

Image
Image

Here's the brush I made and the setting used for it.
Image
Attachment:
File comment: Clock Numbers gih
clock_gih.zip [36.38 KiB]
Downloaded 245 times


Here's also the available Selection modes and what they do.
Image
The GIH Dialog Box

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 8:44 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
Wallace to the rescue... Thank you! and thank you for posting the relevant section of the manual.

I have to ask about the Brush Dynamics: which you used? what the settings were?

I note you used "incremental" when saving the brush, whereas I had chosen "angular." Thanks for showing that. I would have tried changing anything else but that because I interpreted "incremental" to mean "use the next rank, no matter what" and I just knew the choice had to be angle-based. I will give it another try.

I'll follow your lead and post (some of) the documentation regarding "the dynamic matrix", to fill out the post for a possible future visitor ("Greetings, Visitor from the Future.").

I'll start by observing that "a dynamic matrix 'connects' mouse or tablet stylus 'actions' to individual brush 'parameters.'" (Note: at least in 2.10, matrixes cannot be edited for "standard" offerings, which must first be copied to be editable.) Note too that some of both the actions and the parameters are irrelevant to the mouse. That said, the mouse/stylus 'actions' columns are in the first image, and a sampling (just two) of the 'brush parameters' rows are in the second. Note that the Angle one I need is missing... :gaah, but too that the parameters can be influnenced by a stylus or a mouse.

Furthermore, because the documentation involves references to "speed" and "direction" of "the mouse," it's beginning to dawn on me that Edit->Stroke Might Not Use The Mouse, but I will continue this thought later.
Attachment:
Woot3.png
Woot3.png [ 37.57 KiB | Viewed 13346 times ]

Shows only Size and Angle. Nine (!) more, incl. opacity, hardness, jitter...
Attachment:
Woot2.png
Woot2.png [ 21.57 KiB | Viewed 13347 times ]

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 10:57 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
Declaration: I do not have a graphics tablet, only a mouse.

Once again, I am mystified by the results of stroking the path with an animated brush, this time with Wallace's kindly supplied clock.gih. These two results, for different path diameters (visible) and with Dynamics Off on the brush options tab, show, not unexpectedly, that the path and the brush sizes must be compatible.

However, what still surprises is the starting location for the stroke AND the fact that the numbers run counter-clockwise... :shock:
Attachment:
Clock_DynamicsOff.png
Clock_DynamicsOff.png [ 177.54 KiB | Viewed 13330 times ]


In the case where I actually enabled my custom dynamics which "only" connects the Angle parameter to the Tilt action (which isn't even supposed to work for a mouse anyway as I understand it), it gets even weirder: The brush appears upside-down(huh?) so path-stroking results in upside-down numbers. My guess is that because it's not defined for a mouse, results are, ummm, un-defined.

EDIT: I meant to say that the paths were created with the circular selection tool, set at fixed 1:1 and expand-from-center.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 12:59 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
gramp wrote:
However, what still surprises is the starting location for the stroke AND the fact that the numbers run counter-clockwise... :shock:

Flip the path and it should change the direction.

To change starting point experiment with adding a new control point, delete and add back the segment or just make a little gap in the path.

Ofnuts paths tools are the best way overall:
e.g. Reverse strokes
http://gimp-path-tools.sourceforge.net/ ... se-strokes


Last edited by teapot on Wed Mar 25, 2020 1:04 pm, edited 1 time in total.

Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 1:04 pm  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13063
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
You are delving into this pretty deep.
Much deeper then I have ever gone with .gih brushes.

It seems that the brush dynamics,
especially any angular dynamic,
would not be needed for this particular task.

My path was made freehand and not from a selection.
Which is important,
due to the starting point/node,
that has been placed out to start the path and is subsequent closing to complete the circle.
This also give the path it's direction as well.
This can also be done by painting without using a path,
but with even less accuracy.

With my very brief "experimentation".
It seems that spacing and brush size,
are the most crucial aspect to getting this to work out.

Good luck with your assignment.
I look forward to any insight you might have to offer.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 2:30 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
@teapot
Thank you for those insights regarding reversing and breaking/reconstituting a path.
And :bigthup on the advice about ofnuts' paths' tools'.

(On the subject of the "direction of a path" I wonder now if a circle expanded from the center by pulling "up" has a different direction than a similar one made by pulling "down.")

@Wallace
Ahhhh! Again, I would never have taken your circle for hand-drawn.

With your two's's advices I ought to be able to get off this little limb I have crawlt onto.

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 2:58 pm  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13063
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
gramp wrote:
@Wallace
Ahhhh! Again, I would never have taken your circle for hand-drawn.

With your two's's advices I ought to be able to get off this little limb I have crawlt onto.

I'm not sure,
how the paths direction is influenced by the selection it's created from.
This is why I create the path manually instead of from a selection.

I often create .gih brushes and simply hope for the best.
Which for me,
is more a case of trail and error,
than it is actual knowledge and skill.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Wed Mar 25, 2020 7:54 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
teapot wrote:
gramp wrote:
However, what still surprises is the starting location for the stroke AND the fact that the numbers run counter-clockwise... :shock:

Ofnuts paths tools are the best way overall:
e.g. Reverse strokes
http://gimp-path-tools.sourceforge.net/ ... se-strokes

Reverse-strokes is no more, function os now part of ofn-path-edit.

The path from a selection is an approximation of an approximation and there is little control on where it starts and ends. If you want a circle path, there are scripts to create them, with a known start point and path direction (ofn-path-to-shape, in my scripts, but there are others).

Perhaps mundane to this thread, my ofn-brush-strokes-on-path script. Unlike stroking the path, it allows you to accurately put equally spaced brush strokes on a path with an exact integer number of intervals.

_________________
Image


Top
 Post subject: Re: Assignment: create an animated brush to make clock face.
PostPosted: Thu Mar 26, 2020 6:48 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 656
ofnuts wrote:
teapot wrote:
gramp wrote:
However, what still surprises is the starting location for the stroke AND the fact that the numbers run counter-clockwise... :shock:

Ofnuts paths tools are the best way overall:
e.g. Reverse strokes
http://gimp-path-tools.sourceforge.net/ ... se-strokes

Reverse-strokes is no more, function os now part of ofn-path-edit.

Thanks Ofnuts. I forgot that when posting. Am using the latest ofn-path-edit though.


Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Face Stamp Brush

12

No new posts Attachment(s) Make a brush - Make a mandala

316

No new posts Attachment(s) Animated brush

8

No new posts Attachment(s) Animated Stitch Brush

17

No new posts Attachment(s) Animated Chain Brush

16



* Login  



Powered by phpBB3 © phpBB Group