how to write out all passes in single exr file

I have all the diffuse, spec, refl etc passes from network and I want to merge all these files into one exr file. I think we can use shuffle but I dont know how to do this… please help me..

writing out files in Parallel? why nuke recomputes everytime

I have a tree of very complex nodes and when I connect two write nodes with each having 2k output in exr format and another .mov format at 1k. The problem is that nuke recomputes all the operations as the final nodes requests instead of writing in parallel.. this is just recomputing again.. How do i avoid this situation.

I mean when I render out from the lighting stage I need to writeout all the diffuse, spec reflection etc to the compositor so at my light composite stage.

I am just trying to figure out how to write images in parallel instead of recomputing again and again for every single write node…

select channels with similar names

Hello everybody,
I want to compose my 3d scene rendered from Maya using .exr format (with several passes contained into every file).
The problem is that Maya generate the names of the passes with this format:
<SHORT_NAME_PASS>_<long_name>_<set_name>_<camera_r endered>
for example:
AMB_ambient_BG_persp
DIFF_diffuse__FG_persp
but the max lenght is 32 chars for every pass into EXR file, and I have camera names quite long (neccesary for production), so the names are truncated and filled with random numbers in order to distinguish from each other; i.e I get names like this:
AMB_ambient_set1_cam_name_truncated12345
AMB_ambient_set2_cam_name_truncated67890

so the question is:
is there any way of making a manual Shuffle taking as source channel the one which name matches with an initial substring (i.e. with the two truncated names of the previous example: if I want to select as source the pass Ambient forn the set 1, I would specify the starting substring "AMB_ambient_set1")

Thank you very much!

3D objects as comp mattes

I was trying to figure out how to matte 3D cards with 3D scene data thinking that a matte shader would be needed and getting very frustrated.

By some chance I took a look at the Merge Expression node changed its alpha contribution to -1 and piped that into the apply material node for a 3D object. It seems to work pretty well but you need to premult by the alpha channel after a scanline node to get the alpha to be used properly. And it can give some strange results at times.

I have absolutely no idea if there is a better or proper way to do this (I’m very new to nuke) but if someone has another way to achieve this I’d love to hear it.

Test script attached.

Cheers

Dave

Attached Files
File Type: zip Matte_3D.zip (41.7 KB)

Temperature control instead of RGB how?

I want to use the TMI controls instead of RGB ones and I want to get that to be default for couple of nodes and at the same time I couldnt paste the copied links for the global controls.

how to paste the links to TMI from a global node. Or it will be very happy if I can get to know how to paste reverse controls ..ie when I increase one slider the other slider needs to go in the opposite direction…

its finally for the TMI control… pls help me..

Better Nuke Workflow?

Hello everyone!

I was wondering if there are any certain workflow pattern one should follow in order to keep renders as quick as possible. Or does the worlkflow pattern not matter? Like, is there certain ‘Donts’ that would either cause coutnless of errors or further slowdown renders?

Also, does Nuke work best with .mov or sequences?

When writing out, is there any certain compression settings that nuke works best with?

Sorry for all the questions, I just want to make sure that i can fully optimize my current workflow. Thank you!

Regrain Gizmo

Ok, well as I said in the last gizmo I upped Ive been working on some rough footage…..so here is my next fun tool i needed to make to deal with it!

One thing I noticed was that if you use F_Degrain (furnace tool) and you push it to 3 you can blur your gs image and make for an easy key with nice motion blur on really grainy footage. Then you can also export the grain instead of the degrain result and you will get a black image with nothing but grain. Render that out to an uncompressed 32-bit .exr and you can simply merge it over the degrained footage and it restores it completely. So you can key, then restore.

I’m putting this footage onto a bg plate that needs to be defocused. I was just adding a grain plate…but you can still tell that the true grain in the fg image does not truly match the fake grain in the bg image.

Regrain takes the grain as an input and the defocused BG image and adds the grain to it in a natural way….there is control for red, green, and blue, and also for how much grain passes thru dark areas in the image (since really dark areas tend to not have much grain..and black areas have no grain.) So this can be used in a couple ways. One is to just apply the original gs footage grain to the bg…so it matches perfectly…..or if you have one, get a clean green plate without your talent, get the grain plate and apply it.

Attached Files
File Type: gizmo Regrain.gizmo (2.9 KB)

BG_Passthru Gizmo

Hey kiddies…im working on some really tough green screen work and as always I want easier ways to do things. One thing that has been annoying me is that the use luminance switch on the IBK Keyer is both useful and totally useless. This footage im dealing with has all sorts of issues….so i can’t get a good key just from IBK…which means I can’t use the use luminance toggle since it will pass color information thru the holes prior to adding the holdout matte…..so i end up with a perfect ending matte result, but either holes in the fg due to use luminance or noise in the bg because i can’t use the use luminance. So after pulling some hair out I decided to make an external version of the use luminance switch that can technically be used for any type of keyer. Easy to use and I even added an extra feature that the use luminance toggle doesnt have….an amount slider!! Before you merge the two elements plug your keyed fg element into the fg and the bg into the bg….yeah i know, really complicated! Ok, here it is, have fun!

Attached Files
File Type: gizmo BG_Passthru.gizmo (843 Bytes)

Suggestions for 16mm Keying?

Ugh, I want to shoot myself right now.

I’m working with scanned 16mm Film, and its grainy as hell. Whats worse is that it was shot in lower light than usual. The actress has brunette hair tightly bound into a braid, but there are small pieces of hair that are sticking out from her head.

Anyone have any suggestions for tackling this? Unfortunately I can’t upload anything, so I’m not expecting any really detailed help, but suggestions would be great.

My current plan of attack has been to generate a core and edge mattes, then using separate keyers for pieces of the hair. But damn, everything is so grainy, I just can’t avoid sizzling edges. I tried degraining the green screen, then comping the foreground back over it and keying that. That got me a little more progress, but not enough.

Primary keyers i’m using are the IBK and Primatte. Lumakeys just aren’t getting the detail I need.

Rendering Wire Frame in Nuke?

Hey

Is it possible to render the wireframe view out? Without the lights and cameras visible of course.

I have something like a brick wall and a projection going on to the wall – the bricks arent perfectly lined up (apparently) and im getting lines instead of a smooth surface on some blocks, but actually I wouldnt mind getting the edges and using it to show like grooves.

cheers