Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6939055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:34:22+00:00 2026-05-27T12:34:22+00:00

In the Gimp GUI, the QuickMask is very useful for many things, but this

  • 0

In the Gimp GUI, the QuickMask is very useful for many things, but this functionality doesn’t seem to be directly available through script-fu. No obvious equivalents were apparent to me in the procedure browser.

In particular, putting the (value/gray) pixels of a layer into the selection mask is the basic thing I need to do. I tried using gimp-image-get-selection to get the selection channel’s id number, then gimp-edit-paste into it, but the following anchor operation caused Gimp to crash.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:34:22+00:00Added an answer on May 27, 2026 at 12:34 pm

    My other answer contains the “theoretical” way of doing it – however, the O.P. found a bug in GIMP, as of version 2.6.5, as can be seem on the comments to that answer.

    I got a workaround for what the O.P. intends to do: paste the contents of a given image layer to the image selection. As denoted, edit-copy -> edit-paste on the selection drawable triggers a program crash.

    The workaround is to create a new image channel with the desired contents, through the copy and paste method, and then use gimp-selection-load to make the selection equal the channel contents:

    The functions that need to be called are thus (I won’t paste scheme code, as I am not proficient in all the parenthesis – I did the tests using the Python console in GIMP):

    >>> img = gimp.image_list()[0]
    >>> ch = pdb.gimp_channel_new(img, img.width, img.height, "bla", 0, (0,0,0))
    >>> ch
    <gimp.Channel 'bla'>
    >>> pdb.gimp_edit_copy(img.layers[0])
    1
    >>> pdb.gimp_image_add_channel(img, ch, 0)
    >>> fl = pdb.gimp_edit_paste(ch, 0)
    >    >> fl
    <gimp.Layer 'Pasted Layer'>
    >>> pdb.gimp_floating_sel_anchor(fl)
    >>> pdb.gimp_selection_load(ch)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I could like to set a pixel in GIMP, but I can't figure out
I've coded that in python but the language doesn't matter here: pattern = re.compile(^params:([0-9]+)$)
I'm looking for something like paint.net or Gimp, but for audio files, and runs
This is a question that's been bugging me for some time now: In photoshop/GIMP,
I have Photoshop CS5, but I want to switch to GIMP to do basic
this is my first script-fu for gimp and it gives me illegal function when
I would like to do a presentation like this : (done with Gimp )
In the GIMP UI, there is an Apply Threshold functionality (GIMP 2.6) which has
This is a screen shot from GIMP: There's a regular window header on the
All I do is scale image using GIMP and put them into hdpi, ldpi

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.