COPs repeated process

   3133   2   1
User Avatar
Member
201 posts
Joined: July 2005
Offline
H9.1.179
Win Vista64 SP1

Using COPs, let's say I have a series of images rendered from 100-1000. I want to blur frames 100-200 using the fit expression ( fit($F,100,200,0,5) ) … then repeat the same process on frames 350-450, 600-700.

I want to avoid having to chop this into chunks of frame ranges. Is there a COP that can do this? I'm sure there's an easy way of doing this :shock:

Thanks in advance,
Rob


*** posting this to od-force
Cheers,
Rob
Digital Supervisor | Stargate Studios Toronto
User Avatar
Member
1145 posts
Joined: July 2005
Offline
That sounds perfect for Takes.
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
User Avatar
Member
319 posts
Joined:
Offline
Use the modulus operator (%) to feed a repeating number range into your fit function rather than just the current frame number.

E.g. Instead of using something like:-

fit($F,0,100,0,50)

use:-

fit($F%100,0,100,0,50)

This will repeatedly ouput 0-50 over a range of 100 frames, i.e. 0-100,100-200 etc.

Or if you don't want it to be over a continuous range and have gaps, it a bit long winded, but you could do it with multiple if else statements, something like this:-

{

BLURMAX = 50;
BLURMIN = 0;
FRAMEMIN = 0;
FRAMEMAX = 0;

if ( $F > 100 && $F<201 ) {
FRAMEMIN = 100;
FRAMEMAX = 200;
}else if( $F > 349){
FRAMEMIN = 350;
FRAMEMAX = 450;
}else{
return 0;
}
returnme = fit($F,FRAMEMIN,FRAMEMAX,BLURMIN,BLURMAX);
return returnme;
}

In the blur amount (or whatever its called) parameter should work. There may be a more efficient way, but this way at least will work!

I'll try and post a hip file soon..
  • Quick Links