Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete Reflection/Refraction maps with maxscript

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
1184 Views, 2 Replies

Delete Reflection/Refraction maps with maxscript

Hello,

I would like to delete all maps I get from a fbx import

I've tried this

for rrmap in getClassInstances Reflect_Refract do
delete rrmap

but I get a No "delete" function for Map #1:Reflect/Refract

so how can I delete those maps ?

thanks a lot

2 REPLIES 2
Message 2 of 3
Swordslayer
in reply to: Anonymous

 

maps = getClassInstances Reflect_Refract asTrackViewPick:on
for map in maps do
	for ref = 1 to refs.getNumRefs map.client where refs.getReference map.client ref == map.anim do
	(
		refs.replaceReference map.client ref undefined
		notifyDependents map.client
	)

I'd try something like this:

 

Message 3 of 3
Anonymous
in reply to: Swordslayer

waouh !! thanks a lot Swordsalyer, it's just perfect !!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report