Gimptalk - Premier Gimp Community: Layer via Copy/Cut - Gimptalk - Premier Gimp Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Layer via Copy/Cut

#1 User is offline   Oaklet 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 24-July 08

Posted 24 July 2008 - 07:55 PM

Posted Image

GIMP 2.8 Python Plug-in.
Copy and move the selected area to a new layer in the same position.

This function is similar to the functions with the same names in Photoshop, and more powerful. Unlike them, it can copy/cut content, not just from one layer, but also from the layer groups.
In Photoshop, this is not possible

Installation:
1. Close GIMP if it is open.
2. Extract "layer-via-copy-cut.py" from zip archive to the ".../.gimp-2.x/plug-ins" directory.
3. Run GIMP. The script should appear under the menu: "Layer > Layer via Copy" and "Layer > Layer via Cut". Don't forget to make the plugin executable.

This plug-in requires Python!
If you have the "Filters > Python-Fu > Console" menu item you are all set. If not, install Python support for GIMP.

Download:
Download from my deviantart page:
slybug.deviantart.com

Tested with GIMP 2.8
I hope this plug-in will be useful for someone else.

Version History:
v1.5 (04.06.2012)
- Added automatic cache cleanup.
- Fixed bug with non-rectangular selection.
v1.4 (04.06.2012)
- The new layer/group is created above the original, and not at the top of the stack.
- Some code improvements.
v1.3 (01.06.2012)
- Initial release.

This post has been edited by Oaklet: 04 June 2012 - 06:20 PM

0

#2 User is offline   stradivuckos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 122
  • Joined: 05-March 08

Posted 24 July 2008 - 08:06 PM

NICE! :D I hope to see more scripts from you in the future!
I got one script request and i think you can make it, PM me if you want to hear it. :P
EDIT: Welcome to gimptalk.com :D enjoy your stay 8)
Posted Image
You also have an image filled with the color black. (It makes me think of Amy Winehouse, but I digress)<--ccbarr :D
Add me on xfire: stradivuckos
0

#3 User is offline   justice 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 10-August 08

Posted 10 August 2008 - 07:17 AM

Excellent. Just what I was looking for.

Please keep up the good work.
0

#4 User is offline   yvh11a 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 21-December 08

Posted 21 December 2008 - 12:32 AM

Excellent!

Thank you very much.
0

#5 User is offline   r1wigs 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 20-April 11

Posted 20 April 2011 - 01:42 AM

View Postyvh11a, on 21 December 2008 - 12:32 AM, said:

Excellent!

Thank you very much.


I was thrilled to find this script because I loved using this feature in Photoshop but unfortunately I don't understand it in Gimp. When I create a new layer using this feature I can't alter any layers below it. It will only allow you to alter the layer you create with it. If you select the original layer and try to change Hue/saturation for instance, it applies it to the copy/cut layer. It renders any changes to the original layer impossible. To me this renders it useless.
0

#6 User is offline   PhotoComix 

  • GT Senior Moderator
  • Group: Senior Moderators
  • Posts: 11,288
  • Joined: 13-June 05

Posted 21 April 2011 - 08:27 AM

I don't get well your problem but anyway this script is no more needed the same function are included
from long in gimp:

you do Edit/copy ( or just ctrl c )and then Edit/paste AS/new layer...and is done

Sure the new layer will be the active layer, to activate (and so be able to edit) another layer do ctrl l to open layer window (if not already open) and there click to the layer you want to become active
0

#7 User is offline   r1wigs 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 20-April 11

Posted 22 April 2011 - 02:29 AM

View PostPhotoComix, on 21 April 2011 - 08:27 AM, said:

I don't get well your problem but anyway this script is no more needed the same function are included
from long in gimp:

you do Edit/copy ( or just ctrl c )and then Edit/paste AS/new layer...and is done

Sure the new layer will be the active layer, to activate (and so be able to edit) another layer do ctrl l to open layer window (if not already open) and there click to the layer you want to become active



I finally figured it out. In Photoshop, when you use "Layer via Copy/Cut" it automatically deselects the original layer. In Gimp you have to do it manually.
0

#8 User is offline   rylleman 

  • Member
  • PipPip
  • Group: Members
  • Posts: 35
  • Joined: 13-April 07

Posted 02 August 2011 - 09:35 AM

Thank you!
A very useful script indeed that will save me a lot of steps!
0

#9 User is offline   billps 

  • Member
  • PipPip
  • Group: Members
  • Posts: 97
  • Joined: 19-August 11

Posted 02 November 2011 - 10:51 AM

This is an absolutely pointless repetition of a function GIMP already has.

You copy something and click Edit > Paste As > New Layer.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic