cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pasting should be undooable

pasting should be undooable

Quite often, when pasting in the script, node or graph editor, for whatever reason, Maya will paste the whole scene into itself, or whatever nodes are in the clip board (maybe the mouse curser had drifted out of the window I was using).

 

I guess it might be hard to prevent this from happening, but can it at least be undooable?

 

Animators are constantly accidentally pasting objects into the scene when they wanted to paste animation (it is easily done).

2 Comments
zewt
Collaborator

I've always had that problem--try to paste a name into the outliner or a value into the CB, focus is in the wrong spot, you end up pasting hundreds of nodes (that you never meant to copy in the first place), and there's no real recovery other than reloading the scene.  I don't know why there's not an option for this, or why it would even be enabled by default.  It's such an awful side-effect for such an obscure feature.  Does anyone ever actually want to paste a bunch of nodes with "pasted" stuck on the beginning?  (If they were namespaced, you could at least just delete the namespace, I'm guessing this feature is so old it predates namespaces.)

 

I work around this by editing scripts/startup/cutCopyPaste.mel, and commenting out all

 

  $option = "nodes";

 

lines, eg.

 

//  $option = "nodes";

 

That disables node pasting without breaking other types of copy/paste.  I'm not sure I'd recommend editing Maya's scripts this to non-programmers, but it works for me.

 

johnkeates2865
Advocate

Thanks for the tip. I'm not sure I have the guts to do that though... Also, copy/pasting from one scene to another can be useful and has actually saved my skin before where Maya would hang when importing other scenes.

 

I don't always get the 'pasted' name in there also (maybe if the object came from the same scene?), so not always simple to delete the things.

 

I think making this undooable is the best option.

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

Submit Idea