This example builds on the technique from the previous post to show how you can overlay EXIF photographic metadata over the image. It depends on your imagery actually having EXIF metadata tags so you don't get an error in the Console tab.
fusion-viewer-metadata.png
Downloads:
Here is a Fusion comp example and a sample photo. If you save the two assets to the same folder, when you open the comp in Fusion the photo is automatically loaded in to the comp file using the relative Pathmap address of "Comp:/Two Chicken Feet Walking on a Keyboard.jpg".
TextFromPhotoMetadata.comp
Two Chicken Feet Walking on a Keyboard.jpg
The Styled Text Field then uses an expression added that reads the source connection and looks up a specific metadata tag. In this case it is the standard EXIF Metadata attributes but you could change it to print out any attribute you want to display.
Code: Select all
Text("[Camera] " .. self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Make .. " " .. self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Model .. "\n" ..
"[ISO] " .. self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Exif.PhotographicSensitivity .. "\n" ..
"[Focal Length] " .. self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Exif.FocalLength .. " mm\n" ..
"[Shutter Speed] 1/" .. 1/self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Exif.ExposureTime .. " th of a second\n" ..
"[F-Stop] " .. self:GetSourceTool("MetadataSource").Output.Metadata.Camera.Exif.FNumber .. "\n" )
With the sample image this will generate a text output of:
[Camera] SONY ILCE-7SM2
[ISO] 1600
[Focal Length] 0 mm
[Shutter Speed] 1/45 th of a second
[F-Stop] 0
Note: The F-Stop and FocalLength EXIF attributes are empty in this sample image since the photo was taken using a lens that was connected to a Sony A7SII camera with a purely mechanical lens adapter with no electronic lens data connections.
The Text+ node's image width and height settings are configured using these expressions:
Width:
Code: Select all
self:GetSourceTool("MetadataSource").Output.OriginalWidth
Height:
Code: Select all
self:GetSourceTool("MetadataSource").Output.OriginalHeight
fusion-auto-image-size.png
Note: You may need to nudge the Text+ node's
Layout Tab > Center X/Y placement controls when you load your own image into the comp.
You do not have the required permissions to view the files attached to this post.