Jump to content
avak

How to change all texture paths to different location easily?

Recommended Posts

avak    0
Hello

currently  I (working on windows) received some fbx model from other artist (linux), all these models have many many details ,say each model contains hundreds of small pieces and each piece has a material with a texture and the path of texture is a unix format,

when I import these fbx models to houdini, no texture I have and I am on windows, ...really could not find a solution to change the path of all these textures the way my houdini on windows can find it,...

 

 here is an example of one texture path of the model I received:

/media/data/proj/int/Dec2013/seq1/assets/stand_rig/Met_Yelw.bmp

 

and I want to change it to something relative:

$HIP/textures/Met_Yelw.bmp

 

easy for one texture  but I have as I said hundreds of these to change

 

hope you help and thanks in advance
Edited by avak

Share this post


Link to post
Share on other sites
marty    574

One option is using an application like TextWrangler and search and replace the path. The .hip file is just a text document

Share this post


Link to post
Share on other sites
yongbin    20

Have you tested opchange hscript?

 

Try open hscript textport, and type follow.

opchange /media/data/proj/int/Dec2013/seq1/assets/stand_rig \$HIP/textures

It might help you. But if you think something go wrong, just Ctrl-z or don't save file and quit.

 

* sorry, I miss spelled textures -> textrues, I corrected it.

Edited by yongbin

Share this post


Link to post
Share on other sites
jordibares    66
It would be great to have a tool that lists and allows editing of all the external references of a scene, objects, textures, caches… Something I miss from Softimage...

Edited by jordibares

Share this post


Link to post
Share on other sites
marty    574

 

It would be great to have a tool that lists and allows editing of all the external references of a scene, objects, textures, caches… Something I miss from Softimage...

 

'Pre-Flight Scene' has some of this under the Render menu

  • Like 1

Share this post


Link to post
Share on other sites
jordibares    66
Very nice, thanks… I wish it was editable though though… Still its going to be useful.

Edited by jordibares

Share this post


Link to post
Share on other sites
Sankar Kumar    16

'Pre-Flight Scene' has some of this under the Render menu

Thanks for the tip, I have one doubt, I dragged all textures to hip file (Green) area. All textures copied to the location but in shop texture path remains unchanged did i miss any thing?

Edited by Sankar Kumar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×