Jump to content

Extract Image Dimensions (DataWindow) from COPs for an HDA


Lampay

Recommended Posts

Hey Houdini enthusiasts,
Hope you're all doing well! 

I'm currently working on creating an HDA, and I'd like to add a feature that automatically retrieves the size of an image loaded in a COP network (via a File or Null node). My goal is to extract the width and height shown in the DataWindow field, so I can use these values elsewhere in my HDA (e.g., to dynamically adjust a 3D object).

The issue:
I can't figure out how to automatically fetch these dimensions and expose them in my HDA. I've tried a few approaches with Python and expressions, but I'm stuck.

Does anyone have a simple method or tips to dynamically retrieve these dimensions?

Thanks a lot for your help, and happy Houdini-ing!

Capture d'écran 2024-12-12 193012.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...