Feedback

What's your question?

By: [ Editor ] Asked

Query EXIF information in Maya

Hi guys,

Anyone know a way to query EXIF information of images in Maya. Specifically image width and height in pixels.

I'm doing some work with particle sprites, each sprite has it own image. These are photographs, not a sprite animation sequence - and I want to set the particleSpriteWidthPP and particleSpriteHeightPP using the photographs dimensions.

If it's not possible to do in Maya, I probably have another tool that can extract this information and then i'll set the values with a MEL script. It would be a cleaner, more flexible workflow though, if I could do this all in Maya with the particle attributes automatically updated from the images.

Cheers.

M

Add comment viewed 149 times Latest activity 11 months ago

NN comments
hixster
-

Think the particle attributes are spriteScaleXPP and spriteScaleYPP

or Cancel

1 answer

  • 1

thnkr [ Editor ]

If all you need is the dimensions, http://www.thnkr.com/wiki/index.php?title=Dimensions_of_a_file_texture has an example of how to use the file node's outSizeX and outSizeX attributes.

NN comments
hixster
-

Thanks Thinkr, that works quite nicely for me. I got the particles sprite setup working by importing EXIF values from a text file I generate using some other software. But, using the outSizeX and Y, I can connect those directly to a plane scaleX & Y. Using the connections works nicely – as long as the plane has a shader connected to the file texture it will update to fit the aspect ratio of the image when I change the texture.

or Cancel