ScriptSpot

Forum topic · General Scripting

retrieving original path of missing bitmap

By David_Lee · 2013-07-11

Description
 
mat = $.mat

for prop in (getPropNames mat) do 
(
	if (superclassof (getProperty mat prop)) == texturemap do 
	(
		tex = (getProperty mat prop)
		for item in (getPropNames tex) do 
		(
			if item == #filename do
			(
				print (getProperty tex item)
			)
		)
	)
	
)

Running this code, I can get a list of bitmap files used for the selected object.
But how can I get their paths, also if them are missing?

Thanks,
David

Comments (5)

seems not work here...

David_Lee · 2013-07-11

Thanks for your help barigazy, but it returns only the filename, not his original path :(

barigazy · 2013-07-11

You can't find original path with mxs.

David_Lee · 2013-07-11

another reason to hate Max... -.-'

barigazy · 2013-07-11

I not know how other 3D package solve this problem, but max is very limited