ScriptSpot

Script

ZOA Path Editor

By andrasmiklos · Credited author: Balogh Andras Miklos · 2010-11-10

Version
4.00
Version requirement
tested on maxR2016
Date updated
2017-01-10
Votes
39
Download
Download
Description

Simple Path relinker application for maps, ies, hdri corona proxy and vrayproxy objects. Features are: path text replacing and copy functions. The two text fields below each section are for "original" and for "future" paths. $ stand for string. Use it to copy a map path of a selected map to the desired text field.

User interface for the maps section. Others look the same.

Revision 1: I have uptaed the script with Maelvon's nice function. Thanks Maelvon!

Revision 2 | New in v3.00:
-new ui with radiobutton filtering (use the refresh button for manual update!)
-Object selection via map name
-works for HDRIs and environment maps

Revision 4 | New in v4.00:
-sorting is possible
-works for corona related stuff

If you find a bug, report it!

Additional Info

The old versions of the script is still availabele at the links below: http://www.zoa.hu/maxscripts/zoa-path-editor.ms http://www.zoa.hu/maxscripts/zoa-path_editor_v300.ms

Tags: VRay, editor, map, manager, asset, hdri, maps, Path, manage, VrayProxy, assets, ies, Corona

Comments (30)

4K-up bitmaps problem

remark3d · 2019-10-04

Why script do not see textures with above 2K?

Bug

henning · 2017-06-26

For everyone not having Corona installed may I suggest following change to the code:


	if CoronaBitmap != undefined then (
		for m in getClassInstances CoronaBitmap do
		(
		if m.filename!=undefined then 
			(
			if (findItem map_tmp_list m.filename) == 0 then
				(
				append map_tmp_list m.filename
				append map_list #((getFilenamePath m.filename),(getFilenameFile  m.filename), (getFilenameType  m.filename), "bitmap","unused", #()  )
				)
			)
		)
	)

and further down:


-- fn set_bitmap----------------------------------------------------------------------------------------------	
fn set_bitmap	old_file new_file =
	(
	for m in getClassInstances BitmapTexture do
		(
		if m.filename == old_file do ( m.fileName=new_file)
		)
	if CoronaBitmap != undefined then (
		for m in getClassInstances CoronaBitmap do
			(
			if m.filename == old_file do ( m.fileName=new_file)
			)
		)
	)

Sorting! Hell yeah!Many

1rv · 2017-01-11

Sorting! Hell yeah!
Many thanks.
P.S. my compliments to your portfolio, great stuff!

1rv · 2016-02-06

Andras could you make the headlines work please? I mean pressing "file path" above would sort items by path?
Edit: it was requested earlier I missed it . any good news?

andrasmiklos · 2017-01-10

Took me almost a year to come back to this, but finally sorting is possible. :D
Please also note, that the script was done compatible with Corona, thanks to some code from "Nik" @ the Corona Forum.

1rv · 2014-04-09

I see. May I request one additional button?
Many times after Path Editor has already re-pathed assets to a new place I insert some additional geometry.
Could this button automatically copy and re-path to the last used path the assets from newly created geometry?

The $ button

onodi.andras · 2014-04-08

does copy the path of a selected item into the actual path field. That's like a boost for the vacuum cleaner. :)

1rv · 2014-04-08

Amazing tool! works like a vacuum cleaner.
Thank you for sharing!
could you explain in deep ELI5 :) what exactly the '$' button does?

amir3dsmax · 2014-02-14

cant get hdri in vray dome light

Greetings, may i suggest to edit the V3 version

crystal3d · 2013-11-27

so that it behaves like in zoa v1 , no colum sorting but sorting by path as default...

It would immediately be practical as v1...

thanks

Thanx for the great job

Ralf120 · 2012-09-29

Really thanx
is there a possibility to add rename bitmap feature?

just like "Project name_##"

thank you,

malucow · 2012-04-14

Wonderful script, congratz!

malucow · 2012-04-14

Wonderful script, congratz!

Working on it...Anyone can help?

andrasmiklos · 2012-03-30

Thanks for your comments guys. Actually I was thinking of doing that earlier, but didn't really know how sorting works in a listview. Is this the right post I should start along - http://forums.cgsociety.org/archive/index.php/t-795426.html - or does anyone know of a better tutorial or thread that deals with the same issue?

jhn · 2012-04-04

That cgtalk is thread is good, I have used it successfully.

mad · 2012-03-30

please add sorting by columns

New Version Available - v.3.00

andrasmiklos · 2012-03-29

I have just uploaded a new version. It has a brand new ui, with all the different asset-types in one window. You can filter the content of the main window with the appropriate checkbox. Please note that you have to press the refresh button once you have changed the filters.
A new feature is that you can select the objects a map is on.
I think this new UI opened up a whole lot of new ways where the script could be developing to. I wanted to ask you guys which new feature would be the most useful? :) Possibilities are:
-file renaming
-map preview with a map replace option
-dropdown list of recently used paths
-organizing the list by pressing the elements in the first row of the table

Hi again, nice to see you update !

crystal3d · 2012-03-29

I am glad that it resolves HDRIs aswell , much apreciated here!

About your questions

i think 2nd and the third one has the upper hand in priority but i cant help but ask for an "overwrite" option for the files that are already there but modified/new.

currently, if the file is there, it just skips to the next bitmap and the bitmap or proxy remains obsolete.!

here my bug hunt begins :)

ps: i really began missing the autosorting of file paths from C:\ to Z:\

Thanks for the Comments

andrasmiklos · 2012-03-04

Crystal3D, I appreciate your good advice. Those modifications would be great indeed. I will look into it when I have some time. Stay tuned!

looking forward to it!

crystal3d · 2012-03-07

and best of luck.

one sugestion though...

crystal3d · 2012-03-03

Vray HDRI is not considered as an asset file there fore it s now shown in the windows, the problem is this tool is such a complete tool that i forget that is has actually some missing features and that leads to some renders without proper HDRI files,

if u dont mind, i got one other suggestion...

* a path box that can recall previous entries.

*a warning message that asks if they really want to enter the path as "c:\maps" , ZOA needs it as "c:\maps\" at the moment.here i see some people having difficulty with it i guess.

beautiful script

crystal3d · 2011-09-03

been using it for 6 months and it works MARVELOUS together with colin's relink bitmaps.

One suggestion is an option to "overwrite existing files" currently it does not.

thank you sir!

andrasmiklos · 2010-11-24

Thanks Maelvon for the function. It works like a charm!
I absolutely had no time to do scripting lately, so I'm really happy someone did the work for me. :)
If you give me your emailadress, I'd be pleased to give you a proper credit.

"Bitmap undefined" bug

Maelvon · 2010-11-18

fn collect_map_list =
    (
    map_list=#()
    for m in getClassInstances BitmapTexture do --(if (findItem map_list mapfileN) == 0 do (append map_list m.filename))
        (
            local mapfileN = m.filename as string
            if (mapfileN != "undefined") do
                (
                local index = findItem map_list mapfileN
                if index == 0 do append map_list mapfileN
                )
        )
    sort map_list
    )

I've done thoses modification and the Undefined Bitmap Bug seems to be resolved.

Thanks for the script Andras Miklos.

 

Really usefull script, thanks

Matyrix · 2010-11-10

Really useful script, thanks for sharing!
Videófelvevésre ajánlom a "Hypercam2" programot, videókonvertálgatáshoz pedig a: http://www.erightsoft.com/SUPER.html

Keep it up! :)

Tahnks

onodi.andras · 2010-11-11

for the video capture tip! We will try that.

Let me help you -

onodi.andras · 2010-11-10

- as Andras Balogh might not be around now, and I was using his tool for a year now anyways. There are two text fields. The top one is only useful if you are trying to replace a portion of your path string to something else, so don't waste your time with that if you are just fixing paths. Hit the select missing button. That will highlight the maps that max can't find. Use the bottom text field and navigate to the directory (or just paste the path) where your missing maps are and hit "set new path". Well, I hope this helps. :)
What exactly is not working?
We are planning to create a video tutorial, but don't really know which screen capture app would suite us. Any idea?

jsrocha · 2010-11-11

Thanks for your help, i´ll try the script again doing the way you told me. I´ll let you know if everything goes ok.
Cheers,

Jsrocha

jsrocha · 2010-11-10

Sorry man, i don´t know how this script works. I´ve tried to set the path several times, in a way that seemed the right way to me, but it never worked. Maybe a little tutorial will help..........or the problem is that i´m too dumb :/
thanks

let me help you as a gratitude to the author

crystal3d · 2011-07-28

you are pasting "D:\Downloads\Textures" to set new path function.

PROBLEM:= "D:\Downloads\Textures"
should be "D:\Downloads\Textures\"

i think script should be kept this way, cause it is usefull for something else.
it is usefull if you want to rename textures by a prefix, and repath it by this tool.