guocuozuoduo Posted November 28, 2020 Share Posted November 28, 2020 (edited) Is there a function (or even a plugin) where one can position an object by specifying the coordinates of the midpoint of where the object should be (relative to the canvas)? I have been doing this manually for a while, that is hovering over the midpoint and manually moving the object, and hovering over the midpoint again to see if it is in the desired position. I am wondering if there is a quicker alternative. Edited November 28, 2020 by guocuozuoduo clearer wording Quote Link to comment Share on other sites More sharing options...
NSD Posted November 28, 2020 Share Posted November 28, 2020 (edited) You can try Align+ plugin: Click on the arrow in the top right corner... Edited November 28, 2020 by NSD 1 Quote Link to comment Share on other sites More sharing options...
NSD Posted November 28, 2020 Share Posted November 28, 2020 (edited) I made this plugin for you. Maybe it's useful... AlignNSD.zip Edited November 28, 2020 by NSD spelling corrections 1 1 Quote Link to comment Share on other sites More sharing options...
guocuozuoduo Posted November 28, 2020 Author Share Posted November 28, 2020 6 hours ago, NSD said: I made this plugin for you. Maybe it's useful... AlignNSD.zip 7.86 kB · 7 downloads Hello, Unfortunately your plugin is not what I wanted for the following reasons: Your plugin provided the range of numbers from -1 to 1, while I need the range from 0 to 1. I have a selected part with transparent background. Your plugin tried to position the entire colored (non-transparent) part relative to the selected area (and if the colored part reaches the border of the selected area then it stops moving, regardless of how far I continue to drag the slider). What I truly need is to center the midpoint of the selected area (regardless of how much of it is transparent) relative to the entire canvas. With your plugin, if the colored part reaches the border of the selected area, then regardless of the fact that I continue to drag the slider, the object stops moving. I would need my object to continue moving, even if it goes outside the canvas. I am having trouble installing xod's Align+, as I can't find the mentioned two OptionBasedLibrary v0.7.9 files in the attachment. Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted July 8, 2021 Share Posted July 8, 2021 (edited) Hi @NSD Are you still working on this? It fails to load in 4.2.16 with this error message C:\Program Files\paint.net\Effects\Align+.dll, version 0.7.0.0 Name: Align+ Type: AlignEffect.AlignEffectPlugin Version: 0.7.0.0 Author: NSD Copyright: Copyright © 2019 Website: https://forums.getpaint.net/ System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at OptionControls.OptionContext.GetContext(String id, Assembly assembly, String dlcName) at OptionBased.Effects.OptionBasedEffect..ctor(Type type, Image image, EffectFlags flags) at AlignEffect.AlignEffectPlugin..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at PaintDotNet.Effects.EffectsCollection.TryGetEffectInfoFromType(Type effectType) in D:\src\pdn\src\PaintDotNet\Effects\EffectsCollection.cs:line 297 Can you let us know if you can correct it? Issue resolved by restartng Paint Edited July 9, 2021 by AndrewDavid Disregard Quote Link to comment Share on other sites More sharing options...
NSD Posted July 24, 2021 Share Posted July 24, 2021 Hi Andrew. Click on the top right arrow. Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted July 24, 2021 Share Posted July 24, 2021 Thanks @NSD Well done. So many versions now. Your drawing tool looks very interesting. Only 1 spelling mistake.😄 Quote Link to comment Share on other sites More sharing options...
NSD Posted July 24, 2021 Share Posted July 24, 2021 English is not my natural language. I can correct the mistake if you show it to me. Quote Link to comment Share on other sites More sharing options...
ReMake Posted July 24, 2021 Share Posted July 24, 2021 (edited) I hurried to answer. Sorry, I was wrong. Edited July 24, 2021 by ReMake Unjustified haste Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted July 24, 2021 Share Posted July 24, 2021 @NSD I didn't know that. Bottom left coordinates = "Lenght" should be Length. No big deal. 1 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.