HELP replace text in multiple mtl instead of seperately?

Discuss anything you like on this forum.
Post Reply
User avatar
rappet
Licensed Customer
Posts: 1962
Joined: Fri Apr 06, 2012 3:57 pm
Location: The Netherlands
Contact:

Hi you out there,

I need to change the path within a lot of mtl files.
And now I have to open each mtl file seperately and replace texts 'A' with text 'B'
and that is time consuming.

I was wondering if there is any way to do this faster.
Is there a macro out there, a piece of software, something smart, something...?

greetz,

4090+3089ti & Quad 1080ti
ArchiCAD25, ofcourse Octane & OR-ArchiCAD plugin (love it)
http://www.tapperworks.com
http://www.facebook.com/pages/TAPPERWOR ... 9851341126
http://www.youtube.com/user/Tapperworks/videos
User avatar
FrankPooleFloating
Licensed Customer
Posts: 1669
Joined: Thu Nov 29, 2012 3:48 pm

Are you using Notepad++?.. And using Replace (CTRL+H)?.. Do these As and Bs always have a character or word either in front or behind that makes these unique from other text, so you can always replace just these (like \A\)?....... If all three are yes, you should be able to burn thru these bastards with ease.

[1] Open all, or many MTLs

[2] Hit CTRL+H on first one and put in your Find What and Replace With text (path)

[3] Click Replace All

[4] Hit CTRL+W to close

[5] Now when you hit CTRL+H on next, Find What and Replace With text are already in there... Repeat on others with a real quick CTRL+H, Replace All, CTRL+W, and you are now a text-replacing robot. ;)
Win10Pro || GA-X99-SOC-Champion || i7 5820k w/ H60 || 32GB DDR4 || 3x EVGA RTX 2070 Super Hybrid || EVGA Supernova G2 1300W || Tt Core X9 || LightWave Plug (v4 for old gigs) || Blender E-Cycles
prehabitat
Licensed Customer
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

If you have several hundred to change like i did you can use the software i used for mine.
http://render.otoy.com/forum/viewtopic. ... og#p221847
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
User avatar
rappet
Licensed Customer
Posts: 1962
Joined: Fri Apr 06, 2012 3:57 pm
Location: The Netherlands
Contact:

Thanx a lot... Magnificent!

4090+3089ti & Quad 1080ti
ArchiCAD25, ofcourse Octane & OR-ArchiCAD plugin (love it)
http://www.tapperworks.com
http://www.facebook.com/pages/TAPPERWOR ... 9851341126
http://www.youtube.com/user/Tapperworks/videos
User avatar
FrankPooleFloating
Licensed Customer
Posts: 1669
Joined: Thu Nov 29, 2012 3:48 pm

Yeah, that way is better, if you are talking about many files. Never once have I had to find and replace on more than a handful of files, thus not warranting a special app just for that purpose, but it is nice to know this is out there.
Win10Pro || GA-X99-SOC-Champion || i7 5820k w/ H60 || 32GB DDR4 || 3x EVGA RTX 2070 Super Hybrid || EVGA Supernova G2 1300W || Tt Core X9 || LightWave Plug (v4 for old gigs) || Blender E-Cycles
User avatar
rappet
Licensed Customer
Posts: 1962
Joined: Fri Apr 06, 2012 3:57 pm
Location: The Netherlands
Contact:

Yeah. I like both ways... and used what is easier.
Frank's way for handsful, but many,
and the prehabitat way when too many many for boths hands full.
thank you both...
greetz,

edited:

Just used the 'Find and Replace' tool.... WOW!!!

4090+3089ti & Quad 1080ti
ArchiCAD25, ofcourse Octane & OR-ArchiCAD plugin (love it)
http://www.tapperworks.com
http://www.facebook.com/pages/TAPPERWOR ... 9851341126
http://www.youtube.com/user/Tapperworks/videos
Post Reply

Return to “Off Topic Forum”