Mask: From file won't work if the mask is in a folder with "#" in it's name

What is your operating system? Windows 10 version 21H1

What is your Shotcut version? 21.06.29

Can you repeat the problem? If so, what are the steps?

Can someone recreate this?

  1. Create a folder with the “#” character in its name (mine is named ##SANDBOX##)
  2. Create a mask file to be used with the Mask: From file filter and put it in that folder
  3. In Shotcut apply the Mask: From file filter and try to use this mask.
  4. Mask doesn’t work

I’ve used this folder for months to test things in Shotcut and never add any issue with it.
Except now when I try to use a mask file located in this folder.
If I remove all the “#” from the folder name, the mask works.

According to this page from the Microsoft web site, it’s safe use any character to name a folder except those:

< > : " / \ | ? * 

So in principle, Shotcut shouldn’t have any problems with #.

If you want to test, I include this ZIP file containing a project file, and a mask located in 2 different folders: (797.5 KB)

Open the .mlt file, select the transparent clip and try to use the desertmask.png mask from the ##mask## folder, then the one from the mask folder (they are both identical files).

I reproduced it, and as far as I can tell it never worked. The UI library is URL-encoding the path, which converts ‘#’ to ‘%023’ which breaks the mask file loading.

1 Like

This is fixed for the next version 21.08

1 Like