Is it possible to change a node icon with python?

   590   3   1
User Avatar
Member
7 posts
Joined: May 2023
Offline
Hi,

Is it possible to change a node icon with python? I mean the individual node instance not the whole node type.

Thanks
Alex Sknarin
Lighting Technical Supervisor
DNEG
User Avatar
Member
318 posts
Joined: Jan. 2013
Offline
Wouldn't it be better to change the shape of the current node rather than the icon?
User Avatar
Member
123 posts
Joined: Dec. 2019
Offline
A node icon is part of it's type definition, so it can't be modified for a single instance.

Like mentioned by @alexwheezy, node shape could probably be an alternative to what you want to do, as it's possible to modify it by setting "nodeshape" key in current node's userDataDict

node = hou.pwd()
node.setUserData('nodeshape', 'circle')
Houdini Pipeline Supervisor @ TAT Studio
User Avatar
Member
7 posts
Joined: May 2023
Offline
yes I was considering this option. Thanks so much
Edited by alexandr.sknarin - Dec. 1, 2024 04:07:42
Alex Sknarin
Lighting Technical Supervisor
DNEG
  • Quick Links