Copy and Paste Objects

Version: 
0.2
Date Updated: 
03/11/2005

It's always annoyed me that I couldn't copy objects from one instance of max and paste them into another - as I work with 2 or 3 instances of max up at a time. It's tedious to do a save selected / merge objects so this script does it for you. It's not a TRUE copy/paste via the windows clipboard - but it will let you very quickly copy objects from one file to another.

Additional Info: 

09-02-03 Update: just updated contact info in script header and changed version requirement to reflect current versions of 3ds max...

Usage:
Select the objects you want to copy. Run 'copy script' (I assign mine to Ctrl+Shift+C). Now run the 'paste script' (I assign mine to Ctrl+Shift+V) into either the same file or you can load another instance of max and 'paste' the objects into it.

Installation:
1. Click Maxscript / Run Script and choose wherever you downloaded this file to
1a. It will seem like nothing happened but that's exactly what it should do - you now need to assign a shortcut to it
2. Click Customize / Customize User Interface / Keyboard (tab)
3. Change the Category to 'CG_Tools'
4. Click 'Copy Objects to File' and change its Hotkey to something - maybe Ctrl+Shift+C .Click Assign
5. Click 'Paste Objects from File' and change its Hotkey to something - maybe Ctrl+Shift+V. Click Assign
6. Click Save and save your custom UI settings to a file - do yourself a favor and don't use the default.
7. That's it.

Version Requirement: 
3ds max 6-2009
Video URL: 
AttachmentSize
CopyPasteObjects.mcr2.63 KB

Comments

Comment viewing options

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

That's because in MAXScript a

That's because in MAXScript a backslash in a string is considered a special character so you need to double it up. In standard windows batch / command line notation you'd write \\Server\Drive however in MAXScript the string representation is "\\\\Server\\Drive"

In your example changing the code to the following will fix it: thecopypastedir = "\\\\syd01\\temp"

Christopher Grant
Admin, ScriptSpot.com

sam@samshepherd.net's picture

Network directory

Im trying to repath the script to save and merge from a network directory however the script doesnt seem to like UNC file pathing. I can get it to work only if the directory is asigned a drive letter. any ideas?

eg. thecopypastedir = "\syd01\temp"

returns an error saying it cant find the location

thecopypastedir = "c:\temp"

This works

and a work around would be to configure say the project sound directory to \syd01\temp and use

thecopypastedir = getdir #sound

also works

But the nicest, cleanest, easiest way would be to just use the full file path (if possible?)

Sam Shepherd

r_zakzouk@yahoo.com's picture

autodesk should think about that loooooooooong time ago

autodesk should think about that loooooooooong time ago

Tricota's picture

Awsome Script! Thank you!!!!

Awsome Script! Thank you!!!!

nameveiof's picture

Thakns. It`s great!

Thakns. It`s great!

WaseemOnLine's picture

Very useful

Excellent, and it works with max 2013 64bit

Eli Robinson's picture

Excellent!

Excellent script! Thank you so much.

Svennovich's picture

GREAT! tanks

GREAT! tanks

br0t's picture

so simple yet so useful :)!

so simple yet so useful :)! thanks!

edit: just to note, for people having the same issue: if you have two max instances opened that do have different project folders set, the default path in the script getDir #autoback will not work, so just change it to something like getDir #maxroot or "D:\yourFolder\" to make it work.

Never get low & slow & out of ideas

osuoa's picture

Thanks for the awesome

Thanks for the awesome script, it really helps my workflow as I now generally have 2 3ds max's loaded up, one for assets and the other for the main model.
This script has also helped me quickly copy objects between networks.

Comment viewing options

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