Copy and Paste Objects

110 votes
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.
Pankuczy's picture

Missing Forest Pack dependecies

I love this script!

I've been using it all the time in Max2015.
Now I've switched to max2018 SP4 and i've noticed that when you copy Forest Pack objects the dependencies (objects to scatter) are lost after pasting, something that wasn't the issue in max2015.
Does anyone have an idea how to fix that?

[EDIT]
I came across this thread on Itoo's forum, where they've put updated version of this script which solves the problem (script attached): https://forum.itoosoft.com/forest-pro-(*)/bug-report-3ds-max-2019-save-selected-forest-pack-railclone-bug/msg22613/#msg22613

PK

AttachmentSize
copypasteobjects_itoo.mcr 4.09 KB
moopreedee's picture

absolute favourite

your script does help humanity

xaled's picture

Best max script ever. Works

Best max script ever. Works in 2020.

Ripio Suelto's picture

Thanks!!!!

One of those tools that make a man happy. Thanks friend.

fabian-co's picture

Como instalar y usar

Aqui dejo el link, donde enseñor como instalarlo y usarlo, aunque en la descripción de este spot está muy claro, no cabe resaltar en video como hacerlo:

https://www.youtube.com/watch?v=0X2mXn1jJP4

oumhani's picture

Cool script, thank you

works like a charm with 2016

demha's picture

it works in Max 2015

Fantastic script Christopher, thank you so much.

brOt - Thank you for the tip on how to change the folder path for different projects, I would have never known how to fix it.

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

Comment viewing options

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