Skip to content

earlyworm cg

wip and stuff

Tag: metadata

Reading Metadata in Nuke

This is really just quick reference for myself. You can add image metadata to Text nodes in Nuke using the following TCL commands.

filesize [metadata input/filesize]
format [metadata input/filereader]
compression [metadata exr/compressionName]
bits [metadata input/bitsperchannel]
width [metadata input/width]
height [metadata input/height]
frame [format %04d [metadata input/frame]]
Example image showing metadata being overlay on top of a render of  Lego characters and a Lego garbage truck.
Useful for diagnostic renders.

Author earlywormPosted on November 27, 2017January 6, 2019Categories NukeTags expression, metadata, tclLeave a comment on Reading Metadata in Nuke

VRay OpenEXR metadata

This is related to this post on 3Delight and OpenEXR. While the feature is hidden away inside 3Delight, it’s much more accessible inside VRay. It also includes some common attributes like fstop, focal length and clipping planes automatically to the EXR – but it seems to (at least in the version I’m using) to get these all wrong. Luckily it gets our custom metadata right.

In order to add additional metadata, go into the Image Format Options. There is a little string entry field called Extra Attributes for adding metadata to your rendered EXRs.

You can either manually enter values in here like so along the lines of [attrname1]=[value1];[attrname2]=[value2]; but it would make much more sense to dynamically lookup these values. For example, using the following as a Pre-Render-MEL script would add two new pieces of metadata called fstop and focalDistance to our rendered EXR.

string $extras = "";
float $fstop = `getAttr perspShape.fStop`;
float $focusdistance = `getAttr perspShape.focusDistance`;

$extras += ("fstop=" + $fstop + ";");
$extras += ("focalDistance=" + float ($focusdistance) + ";");

setAttr vraySettings.imgOpt_exr_attributes -type "string" $extras;

Using the above MEL as a template it should be possible to add more metadata quite easily.

Author earlywormPosted on May 29, 2012May 29, 2012Categories VrayTags attributes, exr, metadata, nuke, openexr, rendering, vrayLeave a comment on VRay OpenEXR metadata

About:

A collection of works-in-progress, snippets of knowledge and other various bits and pieces to do with CG, VFX and Animation.

Pages

  • OSL Shading Nodes

Recent Posts

  • RibParse
  • Rendering Product Placement
  • Udim
  • Renderman Development On Windows
  • Renderman and Paint Effects

Recent Comments

  • Joshua Selva on Rendering Overscan in Maya
  • Open Shading Language from Scratch (Ubuntu) – Digital Box on OSL Shading Nodes
  • Pixar Renderman sous Ubuntu – Digital Box on Renderman Commandline
  • earlyworm on Renderman and Paint Effects
  • Hercules Mare on Renderman and Paint Effects

Archives

  • July 2019
  • March 2019
  • February 2019
  • January 2019
  • October 2018
  • August 2018
  • November 2017
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • March 2017
  • July 2016
  • December 2015
  • October 2014
  • June 2014
  • May 2014
  • September 2013
  • February 2013
  • January 2013
  • July 2012
  • June 2012
  • May 2012
  • February 2012

Categories

  • 3Delight
  • Blender
  • Linux
  • Maya
  • Mental Ray
  • Nuke
  • renderman
  • Shading
  • Uncategorized
  • VFX
  • Video
  • Vray
  • Zbrush

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
earlyworm cg Proudly powered by WordPress