Gimp scripting, making an animation

Ok, I'm not familiar with Gimp scripting, but I hear it's powerful. This is what I want to do:
1. Take a source image, and have it filled with a solid color, then redraw each pixel in an interlaced fashion, making a new layer for each frame. I calculated that I should have 4608 layers. The layer names are a number starting at 0.
2. output all the layers as pngs as "boot<layer #>.png"
So, can anyone help?
Edit: My source image is 48x96 px
Last edited by Anikom15 (2010-01-23 17:55:34)

First and foremost, don't waste any time at all with Script-Fu. The Tiny Scheme implementation is very good for what it is, but Python is 1,000,000 times better. What you want to do is a bit complex, but you can do it for sure. I would start by getting familiar with the Python interface. On GIMP 2.7, it's under Filters-->Python-Fu-->Console. The browse button will allow you to search for function names and the main window will print out the generic form of each function.

Similar Messages

  • Multithreaded gimp script

    I came across this handy gimp script for batch processing a dir of photos.  I'm wondering if it can be tweaked to use all of my quad core chip's cores?  The application below uses only 1:
    Here is the gimp script:
    $ cat ~/.gimp-2.6/scripts/auto-fix.scm
    (define (batch-auto-fix pattern
    radius
    amount
    threshold)
    (let* ((filelist (cadr (file-glob pattern 1))))
    (while (not (null? filelist))
    (let* ((filename (car filelist))
    (image (car (gimp-file-load RUN-NONINTERACTIVE
    filename filename)))
    (drawable (car (gimp-image-get-active-layer image))))
    (plug-in-unsharp-mask RUN-NONINTERACTIVE
    image drawable radius amount threshold)
    (gimp-levels-stretch drawable)
    (gimp-file-save RUN-NONINTERACTIVE
    image drawable filename filename)
    (gimp-image-delete image))
    (set! filelist (cdr filelist)))))
    Here is how I am calling it from bash:
    $ gimp -i -b '(batch-auto-fix "*.JPG" 5.0 0.5 0)' -b '(gimp-quit 0)'
    Thanks!
    Last edited by graysky (2011-04-16 14:51:37)

    Is poor-man's-multithreading [1] an option?
    [1] You run n scripts, each dealing with 1/n of the files that need to be processed.

  • I am making an animation(frames) on Illustration but im having a problem.

    SO Im making the frames for my animation on illustrator - im making 8 frames per artboard. (im gonna have around 450 frames)
    But i have to put each frame in Photoshop - the size of a6 paper (making a flip book too) .
    But its takes so long to put each frame into photoshop and then i have to save it which also takes ages ?????????????
    Is there any fast ways to do this?
    PLease  if  you know a way you will save me soooo sooo soo much time.

    Sorry i did no explain my self.
    I am making a animation (stop-motion with type)
    I am making the frames on illustrator - i make 8 frames on one art board at a time.
    I then takes those frames i made ( each frame is a word blending in to each other) Ie  'Memory' into 'of'  Happy into Sad.  so its takes 8 frames to do that.
    I then copy and paste each frame/word into photoshop so i centre the frame/word so the animation will be more smooth . But there will be aout 500 frames and it takes ages.
    I was wondering is there a faster way to do this.
    I not to familar with Illustrator . rememeber i got 8 frames that have to be saved separtly on illustrator at a time !!!
    Thanks Monika

  • Un script de cette animation ralentit l'exécution d'Adobe Flash Player

    Bonsoir,
    A certaines activités utilisant du flash, je rencontre ce message qui  bloque ma page et m'oblige à annuler l'acitivité en cours.
    Ce problème est récurrent depuis très longtemps et malgré toute tentative de recherche de solution, mise à jour des programmes concernés, ça persiste.
    J'ai quasiment tout tenté.
    Une solution existe-t-elle ou est-ce le script du programme concerné qui est à refaire ?
    Merci

    Le message que vous recevez :
    Un script de cette animation ralentit l'exécution d'Adobe Flash Player
    signifie que quelque chose qui a été codé (un calcul, un déplacement…) prend beaucoup plus de temps que nécessaire, sans avoir la moindre action. Les raisons fréquentes sont des imbrications de boucles ou des boucles infinies.
    La réponse à votre question est donc oui et oui :
    la solution existe et consiste à réécrire le script.

  • Script that initiates animation with mouseover

    I need some help with the following: I want to initiate a Flash Professional CS4 animation with a mouse over script. I have tried to use a component called mouseover that is an Adobe extention. I think I have done everything right in Flash but it doesn't work after making the .swf movie. Seems like it would be a pretty simple script, but I am not an expert by any stretch. Any help with this would be much appriciated.

    Here's one way to do it:
    Create two layers.
    On the first layer, place a button.
    On the second layer, create a movie clip that contains your animation.  Place a stop action on frame one of the that movie clip.  Give the movie clip and instance name such as myMovieClip. .
    On the button action use:
    on (rollover) {
       myMovieClip.gotoAndPlay(2);

  • Script making Flash 9 running slow Error

    Hey guys i have a site that manage uploads for our content
    providers, but when you run the flash movie and you start uploading
    a file, somewhere is the middle of the upload, a message pops
    saying that a script in the movie is making the flash player to run
    slow, and thta you computer may turn unresponive, after googling
    for this error i find out that my script may have a infinitive loop
    or function, i've been tryint to find the error on my scrip but
    with no luck, here is the code, if anyone have a chance to take a
    look will be appreciate it. thanks in advance.

    Can you repost your code so that it is displayed line by line
    rather than one long line?

  • Making an Animation

    Hi Eveyone...I installed Adobe Flash CS5.5 a couple of days back...Trying to learn a few basic tricks such as motion tween (messed up things with the bone tool though)..Well the problem is, a friend of mine made a 3D drawing in Solid Works(a modelling software). It is a sort of box, now he wants me to make a flash animation for the box which starts from a sheet of paper and folds into a box and then the camera zooms out...
    Now i have no idea how to do that..jpg file can be made and imported to flash...but as it will be an imported file how can it be manipulated to achieve the final task....taking screen shots of the box at various stages of solid works can be done and then played all together in flash baut it would be very tiresome and time consuming...
    I dont want anyone to make it for me just guide me what tools and tutorials to look at.
    Help is much needed and appreciated.
    Thanks

    Hi,
    Here's one way you may accomplish animation.  I replied to another thread about something similar and this seemed to help them.  Kind of the same idea you were getting at by taking screen shots at various positions, let the 3D software do the animaiton for you:
    1. Use the 3D modeling software to render about every 3 frames of the animation to reduce file size (3 works pretty well for smooth motion) (render to a file format that supports alpha, like .tga)
    2. pull those frames into photoshop and use the alpha information from those frames to extract the "object" from the background (so you end up with just the animation object, no background ) for each frame placing each frame on its own layer in photoshop.
    3. save the .psd and then import the .psd into flash (make sure during import to have flash put the layers as keyframes, not layers)
    4. drag the newly created movieclip onto the stage and play.
    This creates some pretty smooth 3D animation that you can interact with the movieclip.  the file gets a little large because of the sequential images but with carefull consideration of the amount of frames you need you can get by with some reasonable file sizes.  One thing I have found on some animations is that the imported .psd files in flash seem to have some jaggy edges on the individual frames.  I have corrected this problem by saving the .psd layers out to individual .png files and then importing these .png files into flash and removing the imported .psd frames, really just replacing the imported ones with the new, cleaner, .png files, kind of a pain, but worth the quality i think (you can export the layers of a .psd file under file - scripts - export layers to files), really easy.
    I'm assuming your friends software can render out sequential images of his animation, render out the frames of the animation to individual frames and then apply the same process as I've outlined above.  Good luck.
    dave

  • Making my animation stop looping (it should be really simple, right?)

    I am trying to achieve a simple thing really; I have made an animation and want it to stop looping at the end.
    A quick search of the internet reassured me that this is simply a matter of putting in a stop(); command in the script. Great!
    Errr.. no.
    Here is what I did:
    I created a new layer for my script and called it 'Actions'
    selected the final frame of the Actions layer and added a keyframe
    selected said keyframe and opened windows->Actions
    typed in stop(); and closed the window.
    Ok, so that apparently is all there is to it. Only, when I test the animation it doesn't move at all. it seems that the stop command executes right at the beginning and is constant throughout the whole timeline.
    Also, I noticed that the Actions layer has a small white circle/dot on frame 1 and on the final frame also. There is no small letter 'a' that should be there on the final frame, but I don't know why.
    So, what am I doing wrong?
    I realise that if I am struggling to do such a simple task it doesn't bode well for any further learning of actionscript. Which is a shame.
    Any help would be great, thanks.
    Andrew

    What you describe should have worked, but you might have mis-stepped as well.  Try having the Actions window opened before you select the frame and type stop(); and leave it open afterwards as well for when you test.  As soon as you enter some code in a frame it should display the lowercase "a", so your best bet is to keep trying it different ways until you see that.  As I said, the way you describe it is legit, but what you might have done in following what you say might be off.

  • How do I download GiMP scripts 2.8 on iMac 10.7 successfully?

    I've been researching and trying for days and it seems fairly simple but will not work. Please help!

    Okay, just for fun, I uninstalled it completely and reinstalled it.  I've googled that, found some more scripts and tried to install them.  I follow the directions and either, I don't have the file that I need to drag my downloaded script to or I do but it never shows up when I restart GiMP. 

  • GIMP script-fu not displayed

    any idea why on  GIMP 2.6.8 no script-fu is displayed. After reinstall of GIMP still no scripts available.
    I can see them in the console but any of them, even the standard ones, generate error like this:
    > (script-fu-coffee-stain run-mode image drawable value toggle)
    Error: eval: unbound variable: run-mode
    to my understanding, the scripts should be available under Script-fu menu entry.
    Do I miss anything here to make the default scripts on GIMP activated?

    pardon me.... the scripts all listed there, but not where there where before, they have changed it.

  • Voice over is making the animation slower??

    hey there,
    i'm currently working on a Flash presentation where i have to
    synchronize the animation with a certain voice over, everything
    goes well if i set the sound properties are set to (stream), but
    since it's a voice over, i have to set the sound properties to
    (event) so i can get the best sound quality.
    The problem is that when i do that (set the sound properties
    to "event") the animation becomes slower when i export to swf and
    not synchronized with the voice over (which doesn't happen if the
    sound properties are set to stream).
    Does anyone know what i should do??
    PS. frame rate is 25
    file size is 512 x 720 pixels
    thanks in advance for any advice : )

    Ralph,
    > i changed the sound settings in the publish tab and now,
    > everything is working fine and the sound quality is much
    > better
    Woo hoo! Glad to hear it.
    > if it's not too much to ask,
    > i'm hoping you can give me some advice on learning
    action
    > script (i know the basic commands that allow u to
    control
    > the timeline -play, stop, go to, etc...) but when it
    comes to
    > more interactivity, i can't do the things i think of
    For me personally, it was a breakthrough to think of
    ActionScript in
    terms of objects. Rather than thinking of basic commands like
    the ones you
    mentioned (and which might be a jumble of anything), think of
    movie clips --
    which is what timelines are, even if they aren't movie clip
    symbols -- as
    solid, manipulatable objects, like a wooden block, a Rubik's
    cube, or any
    other item you can hold in your hands. Objects have
    characteristics (number
    of frames, width and height, x and y position, etc.), which
    are known as
    properties; they can do things (gotoAndPlay(), play(),
    stop(), etc.), which
    are known as methods; and they can react to things (onPress,
    onRelease,
    onMouseMove, etc.), which are known as events.
    Objects are defined by something called classes, so if
    you're dealing
    with a movie clip, look up the MovieClip class in the
    ActionScript 2.0 (or
    3.0) Language Reference. If you're dealing with non-static
    text fields,
    look up the TextField class. Sounds? Look up the Sound class,
    and so on.
    Each of these class entries will give you property, method,
    and/or event
    summaries, as available. Class entries are basically your
    Owner's Manual
    for the object at hand -- and the Language References in the
    Help docs is
    tightly organized around this concept. No more hunt and peck,
    or in the
    very least, the sense of hunting-and-pecking for answers is
    greatly reduced.
    ;) You won't have to guess anymore what an object can do:
    you'll see the
    full list under each class entry.
    > do books help, or do i need to take a course somewhere?
    Different people have different learning styles. There are
    some good
    video training materials online, such as Lynda.com. I
    occasionally dip into
    those, but I also find books very helpful. I haven't had any
    formal
    training in Flash (if you don't count books), and I'm a full
    time Flash
    contractor.
    I've been recommending Object-Oriented ActionScript for
    Flash 8 lately,
    by Todd Yard and Peter Elst (friends of ED). The same authors
    have a new
    edition for Flash CS3 that just hit the shelves. That will
    get you up to
    speed on an object-oriented approach to Flash. You might also
    want to check
    out Foundation ActionScript, by Sham Bhangal (friends of ED),
    or the new
    Foundation ActionScript 3.0 with Flash CS3 and Flex 2, by
    Steve Webster and
    Sean McSharry (friends of ED) -- that one is currently
    available on
    pre-order at Amazon.
    Tom Green and I wrote a companion book to the newer
    Foundation
    ActionScript book, so I'd recommend that too, but ours is
    aimed more at
    designers, though it does introduce and use AS3 in many of
    the chapters.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • New to bash scripting; making script to change laptop CPU governor

    I've got an old laptop and I like to be able to change the governor between performance and ondemand depending on whether or not I've got the laptop plugged in. I'd really like to be able to do this from a shortcut on the desktop, so I decided to try making a bash script that used Zenity dialogs to accomplish this.
    I think it turned out pretty much how I'd like, however the error handling on getting the root password authenticated is pretty broken. I'm not sure how exactly I should go about it.. I think that the long timeout that occurs when you enter a wrong password for su is causing problems. Is there a better way of doing this? I don't use sudo, and I'd really prefer to avoid it and stick to using su if at all possible.
    #!/bin/bash
    #This script will supply a Zenity dialog with the option to change the laptop's governor.
    #It will use a Zenity dialog to acquire the root password from user for autorization to change the governor.
    #Set up some variables we will use.
    optionPerformance="FALSE"
    optionOndemand="FALSE"
    #Read the current state of the governor.
    currentGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    #Change the variables we previously set up to reflect current state of governor. This will be used to determine which option is pre-selected in the Zenity dialog we will create.
    if [ $currentGovernor = 'performance' ]
    then optionPerformance="TRUE"
    fi
    if [ $currentGovernor = 'ondemand' ]
    then opitonOndemand="TRUE"
    fi
    #Set up Zenity dialog which allows user to select the governor they want active. The currently active governor will be selected by default.
    #User's input will go to the wantedGovernor variable for future use.
    wantedGovernor=$(zenity --list --text "Select which governor you want to make active:" --radiolist --column "" --column "Options" $optionPerformance "performance" $optionOndemand "ondemand")
    #Check to see if user clicked Cancel button.
    if [ $? = 1 ]
    then exit 0
    fi
    #Did user select the already active profile? If so, simply report that and exit.
    if [ $wantedGovernor = $currentGovernor ]
    then
    newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    zenity --info --text "Governor is already set to $newGovernor.\n\nNo changes were made."
    exit 0
    fi
    #Now that we know what the user wants, let's do it.
    #We will use cpupower to change the governor. This will require root privileges, so we will use Zenity to get the root password from user and pipe it into su. (Is this the best way?)
    zenity --title "Password for root:" --password | su -c "cpupower frequency-set -g $wantedGovernor"
    #Check to see if user clicked Cancel button.
    if [ ${PIPESTATUS[0]} = 1 ]
    then exit 0
    fi
    #Check to see if user entered incorrect root password.
    if [ ${PIPESTATUS[1]} = 1 ]
    then
    zenity --error --text "Incorrect root password.";
    exit 1
    fi
    #Now that we've made the change, let's check the current state of the governor again so that we can report it to the user and they can verify success.
    newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    zenity --info --text "Governor is now set to $newGovernor."
    Last edited by gilmoreja (2015-01-26 21:49:19)

    Thanks for the advice, Awebb. I looked into gksu but I didn't like how it offered to save the root password in gnome-keyring. I found an alternative, ktsuss, and decided to go with that instead.
    I'll post the finished script here, for anyone who is ever interested in such a thing:
    #!/bin/bash
    #This script will supply a Zenity dialog with the option to change the laptop's governor.
    #It will use a Zenity dialog to acquire the root password from user for autorization to change the governor.
    #Set up some variables we will use.
    optionPerformance="FALSE"
    optionOndemand="FALSE"
    #Read the current state of the governor.
    currentGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    #Change the variables we previously set up to reflect current state of governor. This will be used to determine which option is pre-selected in the Zenity dialog we will create.
    if [ $currentGovernor = 'performance' ]
    then
    optionPerformance="TRUE"
    fi
    if [ $currentGovernor = 'ondemand' ]
    then optionOndemand="TRUE"
    fi
    #Set up Zenity dialog which allows user to select the governor they want active. The currently active governor will be selected by default.
    #User's input will go to the wantedGovernor variable for future use.
    wantedGovernor=$(zenity --list --text "Select which governor you want to make active:" --radiolist --column "" --column "Options" $optionPerformance "performance" $optionOndemand "ondemand")
    #Check to see if user clicked Cancel button.
    if [ $? = 1 ]
    then exit 0
    fi
    #Did user select the already active profile? If so, simply report that and exit.
    if [ $wantedGovernor = $currentGovernor ]
    then
    newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    zenity --info --text "Governor is already set to $newGovernor.\n\nNo changes were made."
    exit 0
    fi
    #Now that we know what the user wants, let's do it.
    #We will use cpupower to change the governor. This will require root privileges, so we will use ktsuss to get that.
    ktsuss cpupower frequency-set -g $wantedGovernor
    #Now that we've made the change, let's check the current state of the governor again so that we can report it to the user and they can verify success.
    newGovernor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
    zenity --info --text "Governor is now set to $newGovernor."

  • I finished making an animated .gif image in FireWorks. My question is, how do I convert it into video so that when I edit video, that every video editing program recognizes it? Long story short, How do I convert animated .gif files into video formats?

    I worked in Adobe FireWorks to make the animated .gif. What program do I use to convert the file from .gif to any video format: .mp4, .m4v, .avi, .wmv, etc. I want to convert it into video format, so that QuickTime Player plays the video, I can insert it into iMovie '11 and edit, and also insert it into Final Cut Pro X and edit video.

    Thanks for getting back with me so promptly.  It has taken me this time to connect with the proper people to find out the information you requested.
    The camera used to film the class was a Panasonic AG-HMC40P, owned by a local cable TV station; they use Kodak video encoding software, and a SD card was used to store the video.   The file extension is .mts, and the mime file is MPEG 2 transport.  He said I probably need an AVCHD converter, and the Mac app store lists 8 of those options, 4 free and 4 for up to $9.99.  He said I'll also need a converter for later plans of posting on YouTube or on the website, and while some of those in the app store might work for the later needs, he knows one app called "Compressor" that would work for the uploading later.  He also suggested I could try renaming the .mts file to .MP2T, but he wasn't sure that would work.
    They don't work with Macs at the studio, but I had thought I could have some lessons there in editing, and apply what I learned to my iMac and iMovie.
    First, though, I have to be able to see it and review it!
    Thanks again!

  • Script making text binary

    have an Automator script that is doing something funky and I was wondering if someone can tell me what I am doing wrong. What the script does, is:
    1. Filters an IRC chat log so that it is broken into 3 hours (2PM, 3PM, 4PM)
    2. It then combines the three hour logs into a single text file
    3. Next it renames the file to chat_today's date.zip
    4. Then it zips the file as archive.zip
    5. Next it renames it to chat_today's date.zip
    6. It then uploads the zip to an FTP server
    7. Then the IRC chat as a whole (all hours) is zipped and archived
    8. Original "whole" chat log is then moved to the trash as is the individual hour text files and the uploaded zip
    My problem is that when you download the zip file and view the text on a Mac it looks fine, however, if you view the same file on a PC it puts in extra binary spaces and wants to use the "big endian" format if viewed in Word.
    Here is an example of what I mean: http://leoville.tv/chatlogs/chat_20060430.zip
    PDF of the script: http://www.dslreports.com/r0/download/1004769~239f9bacc1353186425116afaae3c6e5/V ersion%202--Get%20KFI%20Chat%20Logs.zip
    MacBook Pro & Mac Mini (G4)   Mac OS X (10.4.5)  

    Michael,
    if you look at the log file with a HEX Editor, you will see the following:
    FE FF 02 DB 02 C7 00 00 00 41 00 00 00 70 ...
    This means that the file was originally Unicode (UTF-16) but was interpreted as MacRoman and then converted to Unicode, resulting in everything being duplicated:
    • FE FF is the Unicode byte-order mark which was added in the conversion - this is fine
    • 02 DB is the UTF-16 equivalent of the character FE in MacRoman, 02 C7 is the equivalent of FF - which means you had a Unicode byte-order mark before but it got interpreted as MacRoman and converted to Unicode again
    • 00 00 00 41 is the Unicode equivalent of 00 41 (which is Unicode already and denotes the character "A") interpreted as MacRoman
    Looking at the work flow and playing around in Automator a little, it seems as if it does not allow you the flexibility to specify file encodings so you might have to use an AppleScript or shell script within your workflow - you could use AppleScript to extract the paragraph from the original file and write to a new file and then zip that new file or use a little shell script which does it all (use "sed" to extract everything between the date and the next new paragraph and then pipe the output to "zip")
    Andreas

  • Making 3D animated effects for photos

    Are you able to create 3D photo effects, a la Riding Giants, The Kid Stays in the Picture, etc...by just using PhotoShop and FCE? (not just a simple ken burns effect) or is this something that has to be done in AfterEffects? Does Motion allow you to do this as well? I was thinking I could just take a photo, cut it into layers and then stack the layers in a FCE timeline with different zoom times...or am I being naive?
    Message was edited by: mikedunny

    I can get textures, but i cant get any animated textures to work.
    Well, that would require PS to support animated textures in the first place, would it not? And it simply doesn't. That asisde it's a pretty nonsensical workflow - whatever you are trying to do by hopping between 3 programs could probably be done easily in Blender's comp/ shading tree with direct access to texture data, render passes and all that. Realyl. For everything else you might wanan check this old article of mine to get an idea about a workflow that actually makes sense and plays out the benefits of working with render passes...
    Mylenium

Maybe you are looking for

  • Satellite A100-447 - DVD drive won't read some discs

    Hi, I have a 4 month old Satellite 100-447 (PSAAN), came pre-loaded with Vista Home Premium, and has a Mat****a UJ-850S super-multi DVD/CD drive. The DVD drive is not functioning correctly. It will recognise some blank DVD's, but never DVD-R and will

  • Pages iOS 7 on iPhone 4-- Pages '09 on Mac OS 10.6.8-cannot open file

    When I send a document from Pages for iPhone as a Pages document to iTunes on my Mac running Mac OS 10.6.8 and Pages '09, when I try to open the document, it says the document "couldn't be opened.  The required index.xml file is missing." I can expor

  • ACR 5.5 doesn't show color profiles...

    ...although they are installed and were installed a few times :/ When I open a RAW from sony alpha 350, it only shows Adobe Standard, Adobe Standard beta 2 and Adobe 4.4 profiles I don't even know how the list of profiles should look because it NEVER

  • Unique serial number during production order release for FG materials

    Hi, Actually our client is asking for serial number generation for each FG material during its production order release. So that with this serial number he can track it in shop floor plus after dispatching to customer. Here the scenario is Make To Or

  • Changing requirement type in sales order

    Hello, I'm tryin' to change the position requirements type in an existing sales order (switching between make-to-order and make-to-stock). Both options are available to choose (KE and KSV). But after saving the order the field is grey and no longer a