Jump to content

Current filename


Recommended Posts

I'm writing a effect plugin manipulating images in different ways and make a version of each. But I'm not able to get current filename of original image so I can save the different versions of the image related to the original image.

Is there somehow a way to retrieve the current filename?

Link to comment
Share on other sites

OK, @Rick Brewster, nothing to see here.  Go play some Golden Flute 4 (The Flute of Immortality)... or Skyrim!

 

Is he gone?

 

OK, good.

 

Read this: https://forums.getpaint.net/topic/110300-saving-selection-coordinates/?tab=comments#comment-522042

 

 

The code is a little old and may need to be adjusted... I think there are more entries in the recent files list... And, this was before there was a "*" to indicate unsaved changes.

 

Buyer beware. YMMV. INAL. YAOYO. BYOB.

Link to comment
Share on other sites

@BoltBaitPlay down. If you accept your code then you also have to accept doing it via reflection. Using reflection would need less code and would be more appropriate. Nobody talked about banning. Why not provide a suggestion to get the full filename of the active document? Then you can discuss pros and cons doing it in an effect plugin. I.e. would it break Ctrl-F (Repeat effect)?. So relax :beer:. We all know what you are doing to support paint.net and the users 🙂.

 

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...