forbidden14 Posted January 26, 2023 Share Posted January 26, 2023 Hey all, I'm working on a simple paper tearing HDA that creates a tear from an existing image with alpha. I've got all that working ok, but I'd like to embed the source image into the HDA parameters window itself for visualization purposes. I've looked into the icon strip parameter, but I can't really get it to scale up and visualize how i'd like (I'm using the file path in the token dialog in the Menu tab on the Edit Parameter Interface), but feel like I may be using this wrong. I also like the idea of a background image in the network editor that gets linked to the HDA node itself. I've found this bit of code on the sideFX site: editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) image = hou.NetworkImage() image.setPath('$HFS/houdini/pic/Mandril.pic') image.setRect(hou.BoundingRect(0, 0, 5, 5)) editor.setBackgroundImages([image]) but Ideally I'd like to tie it my source string parameter and to go into a specific geo node network and place the image. It's weird, this code only worked one time when I was playing about with it switching around variables and such, but I couldn't even recreate the mandril BG on the root /obj level even with this code from the SideFx site. I feel like I'm close but missing something or have some python class error or typo, thanks for any help in advance! Quote Link to comment Share on other sites More sharing options...
AndreEK Posted January 27, 2023 Share Posted January 27, 2023 Hi,You can see a similar example here: https://github.com/andrey214/aa_tools/blob/38b2920405e2234be7881220b3202eb54f29d064/python3.9libs/assetloaderlib/hda_core.py#L759 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.