It is currently Fri Jun 21, 2024 12:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Don't work procedures plug-in-bump-map, plug-in-displace
PostPosted: Sun May 17, 2020 6:09 am  (#1) 
Offline
New Member

Joined: May 17, 2020
Posts: 1
Hello! I need your help!!!
I write little script for Gimp version 2.10.14, this script will an animation. It use some procedures so plug-in-displace, plug-in-bump-map but they don't work, i don't know why? I changed their signature, changed value in every param but without good result. :( I want to get a result how i show in my attach file on picture
It code:
(define (script-fu-animtest
                           image
                           drawable
                           blur-radius
                           waviness)
 
 (let* (
         (orig-join-layer nil)
         (copy-join-layer nil)
         (displace-join-layer nil)
         (result-layer nil)
         (width (car (gimp-image-width image)))
         (height (car (gimp-image-height image)))
         (total-frames 1)
         (group nil)
         (name-group "Animation")
         (noise-layer nil)
         (xsize 12.1)
         (ysize 0.6)
       )

   (gimp-image-undo-group-start image)
   (set! orig-join-layer (car (gimp-image-flatten image)))
   (set! noise-layer (car (gimp-layer-copy orig-join-layer 1)))
   (set! copy-join-layer (car (gimp-layer-copy orig-join-layer 1)))
   (gimp-image-resize image (* width 1.2) (* height 1.2) (/ width 10) (/ height 10))
   (set! group (car (gimp-layer-group-new image)))
   (gimp-item-set-name group name-group)
   (gimp-image-insert-layer image group 0 0)
   (gimp-image-insert-layer image copy-join-layer group 0)
   (gimp-image-insert-layer image noise-layer group 0)
   (plug-in-solid-noise RUN-NONINTERACTIVE image noise-layer TRUE FALSE (realtime) 1 xsize ysize)
   (plug-in-gauss-rle 1 image noise-layer blur-radius 1 1)
   (gimp-drawable-brightness-contrast noise-layer 0 .5)
   (gimp-layer-resize-to-image-size copy-join-layer)
   (gimp-layer-resize-to-image-size noise-layer)
   (gimp-drawable-offset copy-join-layer FALSE OFFSET-TRANSPARENT (/ width 10) (/ height 10))
   (gimp-drawable-offset noise-layer FALSE OFFSET-TRANSPARENT (/ width 10) (/ height 10))

; while - here will animation - create frames

   ; (gimp-image-select-rectangle image CHANNEL-OP-REPLACE 0 0 (car (gimp-image-width image)) (car (gimp-image-height image)))
   (set! result-layer (car (gimp-layer-new-from-drawable copy-join-layer image)))
   (gimp-image-insert-layer image result-layer group 0)
   (plug-in-bump-map RUN-NONINTERACTIVE image result-layer
                     noise-layer
                     135
                     45
                     5
                     0 0 0 0
                     TRUE
                     FALSE
                     2)
   (plug-in-displace RUN-NONINTERACTIVE image
                           result-layer
                           123
                           -123
                           .6
                           .6
                           noise-layer
                           noise-layer
                           1)
   (gimp-image-remove-layer image orig-join-layer)
   (gimp-image-undo-group-end image)
   (gimp-displays-flush)

 )
)

(script-fu-register "script-fu-animtest"
                   "Animation Test"
                   "Animation Test"
                   "Author"
                   "Author"
                   "2020"
                   "RGB*, GRAY*"
                   SF-IMAGE    "Image"         0
                   SF-DRAWABLE "Layer to blur" 0
                   SF-VALUE    "Blur strength" "52"
                   SF-ADJUSTMENT "Waviness" '( -40 -500 500 1 1 0 1 ))

(script-fu-menu-register "script-fu-animtest"
                        "<Image>/Script-Fu/Tutorials")


Attachments:
Screenshot_1.jpg
Screenshot_1.jpg [ 142.08 KiB | Viewed 7828 times ]
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: Don't work procedures plug-in-bump-map, plug-in-displace
PostPosted: Sun May 17, 2020 8:26 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
I guess it's due to a bug in GIMP 2.10.14.
Should be ok in 2.10.18

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Top
 Post subject: Re: Don't work procedures plug-in-bump-map, plug-in-displace
PostPosted: Sun May 17, 2020 6:17 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1361
Image


I just made a flag in MathMap - 10 frames and default settings for 'Flag' filter. I think it's ported to G'MIC by Zonderr.
I think the ends should 'flap' more.

PS. I left out the viral DNA due to GC current site policy :lol


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts [Um, no]Can a motivated user edit Python2 plug-ins to work in Py3?

10

No new posts Attachment(s) I need help about ofn-plug-ins

19

No new posts Attachment(s) FX-Foundry plug-in help

2

No new posts Attachment(s) Gimpscripter plug in for 2.10?

4

No new posts Placement plug-in

3



* Login  



Powered by phpBB3 © phpBB Group