It is currently Fri Apr 19, 2024 2:41 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Beveled Star.scm Rel3 [Fix for missing procedure]
PostPosted: Tue Aug 13, 2013 9:34 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
This script follows an excellent tutorial from PegLeg44 Here with settings for colors and the number of 'star-points'

Examples and Menu below↓

Image

ImageImage

Image

Menu Location Script-Fu/Shapes

; Rel 0.02 - Bugfix for Typo

; Rel 0.03↓ - Fix for missing procedure

Attachment:
Beveled Star.scm [10.46 KiB]
Downloaded 162 times

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Wed Aug 14, 2013 7:16 pm, edited 2 times in total.

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: Beveled Star.scm
PostPosted: Tue Aug 13, 2013 9:43 pm  (#2) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
Image


Top
 Post subject: Re: Beveled Star.scm
PostPosted: Tue Aug 13, 2013 9:52 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 426
Ah, I always wanted a script like that.

Thanks, Graechan

You know if there was a way to manipulate the gradient you could make pointed or rounded ends etc. Just a thought.


Top
 Post subject: Re: Beveled Star.scm
PostPosted: Tue Aug 13, 2013 10:08 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
PegLeg I'm Pleased you like your Script and yes the gradient can be manipulated to create rounded ends but it looks like a 'Starfish',
and the top point is not effected unless I rotate -45 degrees, it gets messy

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Beveled Star.scm
PostPosted: Wed Aug 14, 2013 1:14 am  (#5) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan, I'm getting a variable initialization error: unbound variable: translate-point

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Beveled Star.scm
PostPosted: Wed Aug 14, 2013 1:54 am  (#6) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
'Head scratch-er' that one must be something op,s a typo all fixed now Rel2 will be posted immediately

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 2:45 am  (#7) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Working well now

Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 2:58 am  (#8) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Graechan, release 2 still does not have the function translate-point in the script. Perhaps you have this function defined globally somewhere else?

I added the function to the end of the script to make it work for me.

(define (translate-point x y angle distance)
  (let* ((ang (* angle (/ (* 4 (atan 1.0)) 180)))
    (nx (+ (* distance (cos ang)) x))
    (ny (+ (* distance (sin ang)) y)))
    (list nx ny)
  )
)

Image

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 3:28 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7712
Location: On the other side of this screen
:( seems Gnu Tux is correct. I am getting this

Beveled Star Warning
Error while executing script-fu-beveled-star:

Error: (<unknown> : 44584024) eval: unbound variable: translate-point


GIMP Warning
Plug-In 'Beveled Star' left image undo in inconsistent state, closing open undo groups.


Nothing at all happened.

_________________


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 6:02 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice Graechan! :) (i also had to add the same code snippet for the script to run.)
All 12 star shapes in one animation. :bigthup
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 8:33 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very cool Tux and Graechan... Thank you

_________________
Image


Top
 Post subject: Re: Beveled Star.scm Rel2 [bugfix]
PostPosted: Wed Aug 14, 2013 1:37 pm  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod wrote:
Nice Graechan! :) (i also had to add the same code snippet for the script to run.)
All 12 star shapes in one animation. :bigthup
[ Image ]


Cool effect, maybe can be automatized ?
That bumping stars are fun ,
Maybe instead then add complexity here (this script is cool also because a clear gui, with clear option ) animated star may be added to the "animation workshop" ? ...or a dedicated "animated star" ?

stars may be animated by :

1) as Rod sample (inflated/deflated ?)
2) zoom in or out
3) spin on their own center
4) rotate around a user chosen center
5) move
6) shift colors (as shifting along a chosen gradient color range ...)

and all possible combinations ...

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Beveled Star.scm Rel3 [Fix for missing procedure]
PostPosted: Wed Aug 14, 2013 7:25 pm  (#13) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Rel 3 Has been posted (see initial post) thank you GnuTux

I must have used the 'The missing procedure' in another script so this time I loaded a fresh 2.8 and tested OK

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Beveled Star.scm Rel3 [Fix for missing procedure]
PostPosted: Wed Aug 14, 2013 9:57 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7712
Location: On the other side of this screen
Thank you Graechan

Image
After I embossed it with contrasts ticked.
Image

_________________


Top
 Post subject: Re: Beveled Star.scm Rel3 [Fix for missing procedure]
PostPosted: Thu Aug 15, 2013 7:31 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks for the update Graechan! :)

PC that is a great idea.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Beveled Star.scm Rel3 [Fix for missing procedure]
PostPosted: Thu Aug 15, 2013 1:06 pm  (#16) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod wrote:
Thanks for the update Graechan! :)

PC that is a great idea.


I think would rock :paint
Star animation in all flavors,spinning, moving, deflating and inflating, approaching or fading away , shifting colours and/or and switching luminosity on/off, high or low ...

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) how to automate the procedure?

14

No new posts Attachment(s) check if the procedure is correctly done?

6

No new posts Attachment(s) Procedure Browser Crashes

4

No new posts Assign ICC Color Profile from procedure

1

No new posts What is the procedure name for "crop to contents"?

7



* Login  



Powered by phpBB3 © phpBB Group