Blender Git Loki

Git Commits -> Revision 9d91bc3

Revision 9d91bc3 by Lukas Toenne (master)
May 11, 2012, 08:06 (GMT)
A couple more changes to the file and image nodes to improve access to layers that don't follow Blender's rlayer.rpass naming scheme.

--- Changes to File Output node ---
* Flat layer names in EXR multilayer files.

For a socket with name "AAA" the previous resulting EXR layer name would be "AAA.AAA", i.e. the render layer as well as render pass would use the socket name.

Now the "render_layer.render_pass" scheme is ignored in multilayer files, socket names are directly written to EXR layers (EXR layer name is "AAA" in this example). If sockets should have a notion of "render layer" this can still be achieved by explicitly adding a separator, e.g. "AAA.BBB". When loading such layers into a Blender Image struct, the name is interpreted as a "render_layer.render_pass" again (although the image node does not care about it, see below).

* Socket sub-paths (for singlelayer) or layer names (for multilayer) are stored in dedicated string variables in the socket storage data. This way the RNA can define precise string subtypes (PROP_FILEPATH) and length. The file/layer slots are defined as separate structs with own name properties in the RNA as well, so they can be used nicely with the list template.

* Ensure unique socket paths/layer names to prevent overwriting of files and layers respectively.

--- Changes to Image node ---
* Loading multilayer OpenEXR files has improved layer name splitting into render layer + render pass names now. This properly supports arbitrary EXR layer names now.
Example:

OpenEXR layer name: AAA.BBB.CCC

is split into

Render layer name: AAA.BBB
Render pass name: CCC

If the layer name has no '.' separators the render layer name is empty.

* Image node ignores the selected render layer in the image user data. Instead all existing layers are displayed at the same time by combining the render layer names with render pass names again, to reconstruct the original EXR layer name. This avoids the problem that render layers with empty name are not selectetable in the dropdown and allows using all image layers at the same time without duplicating the node.

Commit Details:

Full Hash: 9d91bc38d303e4937bb56dc75d95f11936de5ff9
SVN Revision: 46542
Parent Commit: ce17c35
Lines Changed: +442, -165

11 Modified Paths:

/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+5, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+66, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+5, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+41, -25) (Diff)
/source/blender/imbuf/intern/openexr/openexr_api.cpp (+38, -24) (Diff)
/source/blender/makesdna/DNA_node_types.h (+15, -2) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+94, -54) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_image.c (+87, -42) (Diff)
/source/blender/nodes/composite/nodes/node_composite_outputFile.c (+88, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021