Animating a COPs switch

   1578   3   2
User Avatar
Member
99 posts
Joined: Aug. 2014
Offline
Hi there. I have 6 images of various sizes pulled into a switch node in a COP network.

I want to change the input index value of the switch based on the $F frame number. With the idea of using a ROP to render out a different result per frame. I can manually scrub the switch, but when I put in the $F expression its not happy.

The issue is when I put $F -1 in the input index channel, I get an error saying not all the images are the same size or format or plane etc, and to possibly use a blendCOP.

Is there anyway around this?, or another way to achieve animating in the switch index of a bunch of random images.

* it works when only two images that are the same dimensions are plugged in.

Formatting all the images to be the same dimensions will likely break what I'm actually doing.

Thanks for your help.
User Avatar
Staff
4177 posts
Joined: Sept. 2007
Offline
Try $I, instead of $F
I'm o.d.d.
User Avatar
Member
99 posts
Joined: Aug. 2014
Offline
I get the same error

But thanks for the suggestion.
User Avatar
Staff
5161 posts
Joined: July 2005
Offline
The resolution of an image sequence cannot be animated in COPs. Using a switch that has an animated index with inputs of differing resolution would create a sequence with an animated resolution. This is why you're getting the error.

You'll need to do some scripting to process each file individually.
  • Quick Links