ScriptSpot home

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)
Reply to Branko Živković
David_Lee

seems not work here...

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

Reply to David_Lee
Branko Živković

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