fleniels Posted March 18, 2021 Share Posted March 18, 2021 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? Quote Link to comment Share on other sites More sharing options...
midora Posted March 18, 2021 Share Posted March 18, 2021 Sorry to say, but this information is not available. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted March 18, 2021 Share Posted March 18, 2021 Yes. There is a way. I’ll post the code later tonight when I’m at my laptop. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
midora Posted March 18, 2021 Share Posted March 18, 2021 Access to the active Document info? Something has changed in the last 5 years, good to hear. 🙂 Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted March 18, 2021 Share Posted March 18, 2021 No, it isn't available unless you're using some kind of wacky reflection, which isn't acceptable for plugins that are published here on the forum 1 Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
BoltBait Posted March 19, 2021 Share Posted March 19, 2021 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. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
midora Posted March 19, 2021 Share Posted March 19, 2021 @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 . We all know what you are doing to support paint.net and the users 🙂. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.