[Closed] Network bitmap paths upgrader – Bernardo amorim
hello everyone, so after a really long thay working on this i decided to share it with all of you.
this script will automaticly upgrade your bitmap´s paths on your 3dsmax.ini retreiving those paths from a central file called path.ini that is located on central server.
So this one will everytime you start max upgrade the Bitmap section on the 3dmax.ini file with the ones inside the path.ini file. this file must be on a shared drive and you will have to put that path inside my script…
if you have any questions, please email me.
also don´t forget to copy the actbitmap to your servers script/startup dir.
hugs and comments are very welcome…
excuse my english but i´m quite happpy with this one so hugs bern
the code:
netbitmaps.ms
—-bernardo gomes de amorim
—-2006
—- bernardo.amorim@gmail.com
—- the path.ini file has to be made just like the section of the 3dsmax.ini file and this script will upgrade it anytime you start max.
—- mail me for questions…
—- hugs bern…
— don´t forget to place the actBitmaps on you script sartup dir in every machine on your network.
fn getBitMapPaths =
(
dirArray = getIniSetting "e:\3dsmax.ini" "BitMapDirs" ---change this to your max dir
dirArray_New = getIniSetting "e:\path.ini" "BitMapDirs" --- change this to your network path where such a file is created
---path_array = #()
(
for a= 1 to dirArray.count do
(
delIniSetting "e:\3dsmax.ini" "BitMapDirs" (dirArray[a])
)
for i=1 to dirArray_New.count do
(
arrayNameDir = dirArray_New[i]
setIniSetting "e:\3dsmax.ini" "BitMapDirs" (dirArray_New[i])( (getIniSetting "e:\path.ini" "BitMapDirs" dirArray_New[i]))
print dirArray_New[i]
print (getIniSetting "e:\path.ini" "BitMapDirs" dirArray_New[i])
)
)
)
bit_paths = getBitMapPaths()
gc()
the actbitmaps.ms code:
—by bernardo amorim contact: bernardo.amorim@gmail.com
execute (openfile “$scripts\NET_Bitmaps.ms”)
new_link:
http://www.scriptspot.com/scripts/web_upload/bernardo%20amorim/Archive.zip
sorry about that. but this way is easier.
another brief explanation:
this script is intended to automatically update your servers bitmap paths located inside 3dsmax.ini. He (the script) will grab the path list located inside a file called path.ini thus renderins every 3dsmax.ini updated at rendertime without margins for error.
feel free to mail me with any questions.
hugs bern.
Great idea – its always such a pain to manage max’s absolute pathing in a pipeline. Thanks for sharing