VrayBmpFilter Relink path

Hi friends!

Faced with a big problem, maybe someone can help me?

I have a lot of scenes in which many materials used VrayBmpFilter.

And now I need to change the bitmap path in these scenes. Do it by hand is almost impossible, Asset Tracking does not see the VrayBmpFilter, other scripts and programs also can not do relink path. In addition to creating a script for this purpose, i see no other solution. I'm in this unfortunately do not understand anything :((

Searched everywhere, really nobody faced a similar problem?
Or is there a simple solution, that I do not know?
Help please!

AttachmentSize
path.png309.88 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

:)

Your requested script is finished.Take a look
http://www.scriptspot.com/3ds-max/scripts/relink-vraybmpfilter-maps

barigazy

Kstudio's picture
Chupakabrah's picture

Спасибо конечно, но это как

Спасибо конечно, но это как из ракетницы по воробьям :)
Если проблема решается 5 строчками кода, покупать за 75 долларов плагин...

Chupakabrah's picture

Please, if you have some time

Please, if you have some time and desire, can you write a simple interface to this script? Just enter the path and the button Relink? I am sure that it would be useful to many people. Thanks in advance!

barigazy's picture

Yep.Asset Tracking does not

Yep.Asset Tracking does not recognize VRayBitmapFilter maps.
Try with this function. Just add new path.

fn relinkVRBFmaps newPath:@"C:\\Temp\\" =
(
	local VRBFArr = getClassInstances VRayBmpFilter
	if (cnt=VRBFArr.count) != 0 do
	(
		for m = 1 to cnt do
		(
			VRBFpathName = filenameFromPath VRBFArr[m].bitmapname
			VRBFArr[m].bitmapname = newPath+VRBFpathName
		)
	)
)
relinkVRBFmaps()

barigazy

zahidhasan's picture

Thanks a lot. hope it would

Thanks a lot. hope it would be helpful of other alien type of map in future.

pixamoon's picture

Relink VrayBmpFilter

Hi,
There is a new tool to do it easily. It works for BitmapTexture, VrayBmpFilter, VRayHDRI.

Take a look on Bitmap Tracking / Resizing...
http://www.scriptspot.com/3ds-max/scripts/bitmap-tracking-resizing

Best,
Pixamoon

Chupakabrah's picture

Thank you barigazy! But I get

Thank you barigazy!

But I get the error.
I copied the text of the script, replacing "C:\\Temp\\" to "D:\\Temp\\" and run this script.
In this case, nothing replaced. In Listner written:

-- Error occurred in m loop; filename: ; position: 213; line: 8
-- Frame:
-- m: 1
-- a: undefined
-- VRBFpathName: undefined
-- called in relinkVRBFmaps(); filename: ; position: 267; line: 10
-- Frame:
-- VRBFArr: #(Map #1:VRayBmpFilter)
-- newPath: "D:\\Temp\\"
-- cnt: 1
-- No ""get"" function for undefined

what am I doing wrong?

barigazy's picture

Try again the code.

Try again the code.

barigazy

Chupakabrah's picture

YES! It works! Thank you so

YES! It works! Thank you so much! You saved my life :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.