i have a scene with a bunch of nodes that read textures and uses the textures to edit the geometry (for example a node that writes to a heightmap mask from a texture input). how exactly can you tell houdini to reimport all the textures that are used in the entire scene?
the only thing i know of is to close houdini and reopen it but that's obviously horrendously slow to do, so that doesn't work.
there's some commands i know of to release or refresh textures in the viewport, but those are opengl viewport textures, not textures used in geo editing tools, so it makes sense why it doesn't work as that's not the same thing..
thanks in advance!
-seneca
how to reimport all images in scene? (images used in vex)
293 3 2-
- indigosm
- Member
- 75 posts
- Joined: 4月 2020
- オフライン
-
- CYTE
- Member
- 793 posts
- Joined: 2月 2017
- オフライン
-
- indigosm
- Member
- 75 posts
- Joined: 4月 2020
- オフライン
nah taht doesn't work as i assume it's for opengl or render textures. not textures used in vex.
the only hack way i know of to 'reimport' a file used in vex is this :
if the file path was this :
"c:/test.tga"
and it's now this:
"c:/test.tga "
that makes houdini think you're using a 'new' file and thus it reads it again.
but having to find every image variable and put a new space after the file after every time i change them is torture.. :P
edit : another hack way is to disconnect the vex node and connect it again. but that's torture too.. i know houdini has a way to make all or certain nodes "dirty" again.. i'll look into that..
the only hack way i know of to 'reimport' a file used in vex is this :
if the file path was this :
"c:/test.tga"
and it's now this:
"c:/test.tga "
that makes houdini think you're using a 'new' file and thus it reads it again.
but having to find every image variable and put a new space after the file after every time i change them is torture.. :P
edit : another hack way is to disconnect the vex node and connect it again. but that's torture too.. i know houdini has a way to make all or certain nodes "dirty" again.. i'll look into that..
Edited by indigosm - 2025年11月10日 11:17:30
-
- indigosm
- Member
- 75 posts
- Joined: 4月 2020
- オフライン
ok i see these two commands :
textport :
opcook -F /obj/geo1/*
python :
for node in hou.node("/").allSubChildren():
node.cook(force=True)
that's probably what you're supposed to do i guess is force recook the whole scene.... wonky, but i guess i could write a py script only recooking the nodes with image inputs....
EDIT : nope this doesn't work...haha... i still have to add a space after the image file path to get it to re-execute teh node with the updated image... sigh...
textport :
opcook -F /obj/geo1/*
python :
for node in hou.node("/").allSubChildren():
node.cook(force=True)
that's probably what you're supposed to do i guess is force recook the whole scene.... wonky, but i guess i could write a py script only recooking the nodes with image inputs....
EDIT : nope this doesn't work...haha... i still have to add a space after the image file path to get it to re-execute teh node with the updated image... sigh...
Edited by indigosm - 2025年11月14日 18:47:23
-
- Quick Links

