I feel kind of stupid for asking this because I expected it to be really easy, but how would I get lets say all “Texture” VEX nodes in the whole script via python?
Cheers
Sebastian
python - filter nodes by type
13559 6 1- SElsner
- Member
- 23 posts
- Joined: Nov. 2011
- Offline
- Erik_JE
- Member
- 299 posts
- Joined: Jan. 2010
- Offline
- graham
- Member
- 1921 posts
- Joined: Nov. 2006
- Offline
- SElsner
- Member
- 23 posts
- Joined: Nov. 2011
- Offline
Thanks graham, works beautifully.
Investigating further this is not what I wanted. Actually I am trying to get a list of all images used in the current houdini file. The approach with just getting the texture nodes does not work because the map parm might be connected to a parameter node (promoted) so the map parm does not update. I have been looking into this but could not find out how. How do I find all images in a session in a general way (not just for mantrasurfaces, but for all textures used)?
obviously what I have been doing for maya and nuke a thousand times works in a completely different way in houdini….
Investigating further this is not what I wanted. Actually I am trying to get a list of all images used in the current houdini file. The approach with just getting the texture nodes does not work because the map parm might be connected to a parameter node (promoted) so the map parm does not update. I have been looking into this but could not find out how. How do I find all images in a session in a general way (not just for mantrasurfaces, but for all textures used)?
obviously what I have been doing for maya and nuke a thousand times works in a completely different way in houdini….
- graham
- Member
- 1921 posts
- Joined: Nov. 2006
- Offline
Take a look at the hscript ‘opextern’ command.
You could also use the getExternalReferences() function in this module, as it is just a wrapper around opextern.
http://houdinitoolbox.com/houdini.php?asset=38 [houdinitoolbox.com]
You could also use the getExternalReferences() function in this module, as it is just a wrapper around opextern.
http://houdinitoolbox.com/houdini.php?asset=38 [houdinitoolbox.com]
Graham Thompson, Technical Artist @ Rockstar Games
- SElsner
- Member
- 23 posts
- Joined: Nov. 2011
- Offline
- Netvudu
- Member
- 304 posts
- Joined: May 2006
- Offline
-
- Quick Links