Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Masking Panel dismissed when using API Add, Subtract, Intersect and a tool is uncommitted.

Advocate ,
Dec 10, 2023 Dec 10, 2023

I am seeing a weird behavior with the when I Add, Subtract, Intersect using the API when a MaskTool is currently selected but uncommitted .

 

 

Steps to reproduce.

 

1. Create a new maks with any tool of your choice E.g. Radial Gradient (no need to sue the API for this step)

 

Screenshot 2023-12-10 at 13.07.45.png

 

2. Click on Add, Subtract or Intersect and choose a tool that is not Sky, Background, Subject.

Please DO NOT not create/draw it, simply select it (this could be done via the API but is not necessary.)

 

Screenshot 2023-12-10 at 13.08.22.png

 

As you can see the tool is selected but no mask is yet created.

Correction is still selected and open.

This is a UI state.

 

3. Use the API and do either LrDevelopController.addToCurrentMask (maskType, maskSubtype)  or LrDevelopController.intersectWithCurrentMask (maskType, maskSubtype ) or LrDevelopController.subtractFromCurrentMask (maskType, maskSubtype )

 

Any maskType or MaskSubtype will do as long as it is not "subject", "sky" or "background" that are immediately created.

You can choose a different maskType or MaskSubtype than the one at step 2 .

 

In the video when I moved off-screen I did  LrDevelopController.subtractFromCurrentMask ("gradient") 

 

ERROR: Masking is dismissed completely when using the API to Add, Subtract, Intersect and a tool is selected and uncommitted 

 

  • I would expect instead that: the Masking panel stays open, the Correction stays selected AND we see the UI state for the used API (e.g Subtract Linear Gradient)

 

Screenshot 2023-12-10 at 13.31.14.png

 

Please notice in the second video that when a tool is selected and not committed we can switch to Add, Subtract, Intersect another tool using the UI.

In that case Masking panel is not closed.

 

The same should happen via API imo.

 

It might be a small thing but is annoying.

 

.P.S

I edited the thread and the title, now I hope it will be more clear.

Tis not easy to condense a complex bug when the title has a character limit.

 

 

TOPICS
macOS , SDK
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation