IM help
10 messages in this thread
Ben, I am trying to create and animation that fades in a image from the
secondary buffer to a specific area on the primary. I load the images into
the buffers then attempt to use MFS with the following Pre-render script.
options results; var1=results;'loadmask programs:imagemaster/Bethmask.msk
1'; 'setblend 1 0 '||var1*25.5;'setblend 1 255 '||var1*25.5;'setblend 2 0
'||var1 *25.5;'setblend 2 255 '||var1*25.5;'setblend 3 0
'||var1*25.5;'setblend 3 255 ' ||var1*25.5;'setblend 4 0
'||var1*25.5;'setblend 4 255 '||var1*25.5;merge;finish
I have the render set up and the paths. It creates frame 1 and then hangs.
This is my first attempt at writing an Arexx script so I'm sure its
something I'm doing wrong. Just can't figure out what. Any help is
appreciate.
BTW. I love the program what great capabilities. Do have two requests 1)
Include in MFS a requester for loading images into secondary buffer 2)
Making it so I can work with the images in DCTV rather than HAM.
Keep up the good work.
Robert
Robert,
First, your var1=results does nothing. When a IM command returns something
(which did NOT happen there, btw), it returns in 'result', not 'results'.
Second, the blends are not set up by what you have done. You need to set up
a loop – like this, for each blend:
do i=0 to 255
/* put line here to calculate "var1" */
/* calc var2 here */
/* calc var3 here */
/* calc var4 here */
'setblend 1 '||i||var1
'setblend 2 '||i||var2
'setblend 3 '||i||var3
'setblend 4 '||i||var4
end;
get in the habit of putting quotes around commands to our software, vis:
'merge';
'finish';
Other than the fact that your scriupt won't do what you want, I don't see
any reason for it to hang; make the fixes I suggest and then let me know
how it goes.
Finally – if you post a script for me to look at, please insert spaces
before each line, so CIS (or whap) won't format the script all screwy.
We'll make this a rule in the future.
–Ben
Ben, Thanks for help the script will generate 10 frames now but doesn't
create a fade. All frames are merged 100%. Current script is
options results; 'tween 1 10'; var2 = result; 'laodmask ram:thismask.msk'
do i = 0 to 255
var1 = var2*25.5
'setblend 1 '||i||var1
'setblend 2 '||i||var1
'setblend 3 '||i||var1
'setblend 4 '||i||var1
end;
'merge' 'finish'
Mispelled loadmask but is correct in my script. The feedback in IM says
that itis building transparancies but all the merges are at 100%. Not
trying to do anyting fancy here just have the blend go from 0 to 255 over
the ten frames. Thanks –Robert
Um… looks ok… are you sure you have the blend curves switched on? There
is a switch in the blend/other controls panel that enables the graph
controls.
–Ben
Ben, I have Normal 4 Way selected in the compose/coposition controls/set
blend/other options panel. Is there something else I should set? I tried
it with the scale blend set to various numbers as well to give the script a
starting point. But those attempts merely give me ten frames of merged at
that setting. Thanks for the speedy replies. –Robert
No – nothing else that I can think of. I'll try this at the office tomorrow
and see what's up. If you'll remember to ask me, I'll remember to tell you
what I find out. :^)
Seriously – if we find a problem, it'll be fixed next release. If not, I'll
let you know what we both missed.
–Ben
Thanks Ben. BTW I'm using version 9.10. –Rob
Robert,
if your script contains the line:
'setblend 1 '||i||var1
and i=3 and var1=56, won't it be parsed as:
'setblend 1 356' ???
I would change the line to
'setbland 1 '||i||' '||var1
and see if it works.
Blaq!
Charles – you're exactly right – he needs a space in there. Can't believe I
missed that. :^(
–Ben
Thanks Charles, that did it. Works just like I imagined it. Now maybe I'll
get adventursome and try some more scripts.
Robert