Name: Pipeline Pilot Animation Studio
Author: Ian Kerman
Version: 1.0
Created: 4/2012
Requirements: Pipeline Pilot 8.5 or later; Imaging Collection
O/S: Linux
Known Limitations: This currently only works on Linux because it uses the ImageMagick installation included with the Imaging collection on Linux. If you install ImageMagick on your Windows server, you can set the ‘convert’ file path to point to your installation and it should work.
Do you look at the Pipeline Pilot components and wish the color scheme was more than just blue, green, and occasionally red? Did you grow up wanting to be an animator at a mouse-run company, but had the good fortune to become a Pipeline Pilot developer? Do you miss the days when animated GIFs ruled the World Wide Web? If you answered “Yes” to any of these questions, then I have the component that you’ve been waiting for!
Introducing the Pipeline Pilot Animation Studio, an all-in-one component (sort of) that allows you to craft stunning animations (sort of) with your favorite Scientific Pipelining tool. To use the PPAS, all you have to do is “paint” the frames of your animation using a two-dimensional array. Each array will then be rendered into an image and all resulting images will be merged into an animated GIF for display in your report. The PPAS gives you the ultimate control by allowing you to carefully (tediously) specify the color for each pixel in your image.
Comment below with your favorite animation protocols!

A few notes:
1 - you need to have the frame calculations OUTSIDE of the component
2 - there is a difference between ImageMagick versions (that is causing my animation to not work)
3 - anything over 10 frames can get screwy
#1 - make frames THEN make animation
I did some animation with Pipeline Pilot awhile ago but used the "Canvas" component to create frames.
https://community.accelrys.com/message/3429#3429
By moving the frame creation outside of the "Animation Studio", this becomes a flexible (ie useful) component.
#2 - diference in ImageMagick version
I modified my original code to use the PLP version. The animation wasn't created.
I modified my original code to use your "Animation Studio" component. It still didn't work until I changed the location to "/usr/bin/convert".
I haven't looked into it very closely.
I can e-mail you/support with some more information.
#3 - anything over 10 frames can get screwy
My protocol generates over 200 frames. It looks like frame order goes out-of-wack if you do not "left pad" your frame number.
ENHANCMENT REQUEST: add an LPAD() function to PilotScript.
I've included the updated protocol.
Brilliant!
PS You can use the format command to lpad with 0s format('%03i',index)
Love the description! Put a smile straight on a Friday morning
I just tried on windows, and it is possible to run it with the Portable Win32 static at 16 bits-per-pixel file (last file here
http://www.imagemagick.org/script/binary-releases.php?ImageMagick=f4igumroo9ghkmrog7nc73kob7#windows )
At least on a 32 bits system, and this doesn't requiere any installation on the server, just unziping the file in a directory.
Asteroid2 animation is also working.
Taking the "Frame Creation" out of the Studio definitely makes it more flexible. What I'm doing now is just saving the images in the Studio such that you can send in your Canvas or Chart data records to be animated. It probably takes a little bit longer now because there is an extra RTC subprotocol, but I think it will be minimal. PipelinePilotAnimationStudio_2 has the new Animation Studio component and produces the same animation as before.
Regarding the Asteroids, animation, there definitely is something off about the ImageMagick convert version. What I found is that if the Canvas is all black and white, it gets saved as a grayscale image with a PixelType of "unsigned char". If, however, you add a bit of color, it gets saved as an image with a PixelType of "color" and this seems to animate no problem. In the attached "Asteroids 3" protocol (also modified for the new Studio), I changed the color of the "PLAYER 1 HI-SCORE PLAYER 2" line to be an off-white (#FFFEFF) and this was enough to fix it. If a different version of ImageMagick is what fixed it, then I assume there's something wrong with this version as opposed to something being wrong with the PNG Writer.
I haven't had a problem with lots of frames and did an animation with 1000 frames without issue (see below). I use the format() function to left-pad the filename with 5 zeroes, so unless you're doing 100,000 frames, you should be ok. Let me know if you continue to have problems with this with the new component.
Jérémy, thanks for testing this out on Windows. It's good to know that it will work on that platform if you have the convert application.
That's cool Ian
If you want an animation based on imaging collection input, look at component
It's using ImageJ