Jump to content

How to replace string values in external .txt files?


Rahul Girish

Recommended Posts

Hey guys,

I recently had some VRScenes made (a file type to save vray material, lights etc into a vray scene file) - however at the time I had setup materials on desktop.

I have cleaned up my drive and moved everything to external SSD. Now I found out that my VRScene files do not find the textures I had created on desktop since they have been moved (obviously).

I realised I can quickly edit the .VRScene files in a text editor and replace the file location in few places i.e. "C:\files\old_location" to "G:\files\new_location". I have maybe 5 or 6 VRScenes to do this with which is easy to manually do but I wanted to exercise some Houdini into this and wanted some directions on how I can procedurally edit a bunch of .VRScene or .txt files and replace certain string variables. Surely there is a way to automate this process! 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...