https://bugs.kde.org/show_bug.cgi?id=419281

            Bug ID: 419281
           Summary: Krita Actions - Copy Paste Layer Script
           Product: krita
           Version: 4.2.8
          Platform: Other
                OS: other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: keyth2363...@gmail.com
  Target Milestone: ---

SUMMARY
Making a selection on a layer and using the 

STEPS TO REPRODUCE
scenarioA
1. Make a Selection
2. use "copy_selection_to_new_layer" action for a new layer (becomes locked to
layer)
3. try using "activateNextLayer" to select the new layer (will not work,
originally I tried without it since it moves up but it has the same effect this
being here or not)
4. try to use any action on the new layer but it will Always affect the
original layer.

scenarioB
1. Make a Selection
2. use "copy_selection_to_new_layer" action for a new layer
3. Create another script/button to do the rest of the actions
4. now "activateNextLayer" is not needed since the pause allows the layer
selection to be Concrete.
5. try to use any action on the new layer but now it will work.

OBSERVED RESULT
Creating a new layer with a paste of any kind blocks any operation to the new
layer, even layers changes. But if you part the same code in two parts it
works.

EXPECTED RESULT
Ability to change layer after a paste command.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
As you can see the commands actually work if they are applied individually but
they should be able to work along side each other.
I was making a small copy paste and mirror script and I noticed this odd
behavior, I will be posting my code to this link if it is quicker to take a
look and test. My code considers if you have a selection or not active and if
you don't it creates a selection, currently you need to press M1 and then M2
for it to execute whole.
code:
https://github.com/EyeOdin/mirror_tools

Hopefully I could merge "Mirror_1" and "Mirror_2" into a single function
without resorting to a break.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to