Jump to content
Sign in to follow this  
barad_dur

Rendering out nth frames and compositing them.

Recommended Posts

Hi all,

 

I am rendering out a fire simulation for sprite construction in Unity and I am running into an issue using the Mosaic COP for sprite sheet construction. I am rendering out every 24th frame of a simulation to end up with 10 frames that I want to make a sprite sheet from. However, bringing the frames back in to COP Context via a file sop is proving difficult.

 

COP_zps1dy6ojah.jpg

 

It looks like I am missing the boat on how to get nth numbered frames back in without Houdini "filling in the holes", in this case making 11 or so copies of single frames. Do I need to hand rename these frames? I know it's something simple, it always is but if someone could give me a hand I'd appreciate it. Thank you

Share this post


Link to post
Share on other sites

When you read the image sequence in you might need an expression in your file path to only grab frames you want, instead of $F4.  Maybe instead of $F4 try:

 

`padzero(4,($F-1)*23+1)`

 

```````Make sure you use the backticks or it won't evaluate.````````

 

If you didn't have padding on your tif sequence you could use

 

`($F-1)*23+1`

 

But since you have padding you need the top expression.  padzero adds the padding in this case 4.

 

That should make each frame correspond to the actual image you want in the sequence.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×