Notifications
Clear all

[Closed] Copy material

I need to copy the A material props in a B one.

I’ve tried to copy or assign an A material in B one with no success. I’m trying now just to duplicate the A material as with the MAJ + drag and drop in the slate, and rename the duplicate.

Is it possible through maxscript ?

Thanks

2 Replies

This?

(
	mat_A = standard diffusecolor:red name:"MAT_A"
	
	mat_B = copy mat_A
	mat_B.name = "MAT_B"
	
	delete objects
	box name:"A" material:mat_A
	box name:"B" material:mat_B pos:[30,0,0]
)

absolutely. So easy i couldn’t see it… thank you