Copy Material from one object to another in viewport

I'm looking for a 3ds max script that will allow me to copy an object's material (with a hotkey - don't like new menus and tool bars) and paste it to another object all within the viewport. It would save me a lot of steps having to first open material editor then pick the material then assign to new material. I would love something that did this between instances like CopyPasteObjects.mcr (best script ever :). It would save me so much time.

Attached is an example of what I want to do...to select the object with the mat I need, copy, then switch to different max scene and paste onto new object.

Right now I'm copying and pasting objects which is adding in a lot of unnecessary steps.

Thanks in advance.

AttachmentSize
capture.jpg164.53 KB

Comments

Comment viewing options

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

Copy | Paste Materials

Put this *.mcr in macroscript folder
You can find two macros in "bgaTools" category.

AttachmentSize
bga_copy_paste_materials.mcr 1 KB

bga

DotScott1's picture

Nice

Great work! Thanks!

elirobinson's picture

Thanks

Awesome script,barigazy, thank you!
2 things:
Is it possible to have it copy from one Max instance and then paste into a different scene in a different Max Instance?
Also after I drag and drop the script into the viewport it works fine but when I restart max I get
-- Unknown property: "count" in undefined .....when I drag the script into the viewport again it works fine. I saved it in macroscripts folder and still same problem each time I start max.

barigazy's picture
elirobinson's picture

tried that

I tried that but it only copies and pastes materials in the material editor from what I can tell, not something I really need. Your script is perfect if I can copy from one max to another.

Attached is an example of what I want to do...to select the object with the mat I need, copy, then switch to different max scene and paste onto new object.

Right now I'm copying and pasting objects which is adding in a lot of unnecessary steps.

AttachmentSize
capture.jpg 164.99 KB
barigazy's picture

...

I not have time to test this but u can try it.
Also u neet to use same versions of max as different instance.
If you need to convert some material libs in earlier version of max then use this tool. http://www.scriptspot.com/3ds-max/scripts/mat-file-to-lower-version

AttachmentSize
bga_copy_paste_materials_v2.mcr 1.02 KB

bga

elirobinson's picture

yes!

My Hero! This is great. Works very well. Only problem I see is that when I try to paste to multiple objects I get the message "Select Some Objects" In your previous version it pasted to multiple objects with no error message.

barigazy's picture

...

I told you it's not tested. Try this one

AttachmentSize
bga_copy_paste_materials_v2.0.mcr 1.02 KB

bga

elirobinson's picture

Yes, I understand. I was

Yes, I understand. I was testing for you :). This one works flawlessly. I really appreciate it. Thank you.

barigazy's picture

...

Great! Mission accomplished :)

bga

Comment viewing options

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