Jump to content


Photo

Align Object Plugin - Updated 06/17/2007


  • Please log in to reply
208 replies to this topic

#1 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 25 May 2007 - 05:17 PM

Ok here it is, this plugin will align your drawing on the canvas OR to your selection. Let me know of any bugs, comments ... etc.
updated 06/17/2007
v1.5.1
performance tweak. barkbark00, I think you should see the performance issue gone, but let me know.
updated 06/13/2007
v1.5 - the download link should give you the new dll. the source is not latest, will add that later.
Added horizontal, vertical and both options.
New user interface. Default option is Middle Center.
Better Performance???
Preview still doesn't work right but you don't really need a preview, you know what will happen! But maybe one day I can fix that. NOTE: If the preview is messed up, click the same option again, it should fix the preview.
If you find bugs let me know ... I will see what I can do.
Posted Image

Download the Zip file at the bottom of this post (old link: download dll)
edit: added source, this source is old. latest source added on 10/15/2007, forgot to add this a while ago.
download source.

Currently you can align Left, Center, Right, Top, Middle or Bottom.

To do combinations such as Top Left, you need to run the plugin twice, once for each mode.

The preview for Top, Middle and Bottom is screwy, I still get very confused with the way pdn splits the image into rectangles and runs them in parallel so the preview ends up erasing some parts it shouldn't but when you apply it works correctly. Maybe I can get some help from Rick himself on this later or anyone else who may be able to.

Here are some screenshots:

Original
Posted Image
Aligned Left
Posted Image
Aligned Top Left
Posted Image
Center and Middle
Posted Image

Attached Files


  • 3

#2 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 25 May 2007 - 05:52 PM

Center and Middle
Posted Image


This will be immensely helpful!
  • 1
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#3 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 25 May 2007 - 05:55 PM

Hey I didn't seen it at first sight! Thanks Barkbark for pointing it!
And thank you, moc426 for writing this plugin.
I need to test it a little but I think it can be a must have.
  • 0

#4 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 25 May 2007 - 06:19 PM

I added 2 more previews to demonstrate better the use of align to selection.

Glad it will be helpful to you guys, it is very useful for myself.
  • 0

#5 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 25 May 2007 - 06:24 PM

Maybe I can get some help from Rick himself

What about sharing the code so people can help you? :)
  • 0

#6 Leif

Leif
  • Members
  • 673 posts
  • LocationDenmark
  • Reputation:0

Posted 25 May 2007 - 06:24 PM

The preview is a bit confusing at first. But once you have seen how it all works, it doesn’t matter.
Great plugin. Thank you.
  • 0
Posted Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.

#7 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 25 May 2007 - 07:28 PM

Source added now.

Maybe I can get some help from Rick himself

What about sharing the code so people can help you? :)


  • 0

#8 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 25 May 2007 - 07:46 PM

How about an interface like this?
Posted Image
  • 0
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#9 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 25 May 2007 - 07:56 PM

Yah if I can make it do 2 functions same time then I can change the interface, which it doesn't currently do. That would need another row or column of buttons though, because you may want to just center (left to right) and not middle (top and bottom) or 3 center buttons. meaning center vertically, center horizontally and center both.

How about an interface like this?
Posted Image


  • 0

#10 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 25 May 2007 - 10:26 PM

Posted Image
  • 0

#11 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 25 May 2007 - 10:36 PM

Posted Image

Just a thought, nothing mandatory.
  • 0

#12 Yata

Yata
  • Members
  • 3,267 posts
  • LocationOhio
  • Reputation:0

Posted 26 May 2007 - 12:23 AM

Regardless, it's a well needed plugin :D
  • 0

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former"
Posted Image
[ dA Paint.NET Chat :: Yata on dA ]


#13 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 26 May 2007 - 12:39 AM

Yah until Rick does something like this... (where it really should be, hint hint hint COUGH COUGH HINT)

Posted Image

Regardless, it's a well needed plugin :D


  • 0

#14 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 26 May 2007 - 12:51 AM

I think something like this would be the easiest to understand...
Posted Image
  • 0
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#15 Sozo

Sozo
  • Competition Hosts
  • 4,417 posts
  • LocationYe Olde Dominion
  • Reputation:15

Posted 26 May 2007 - 11:48 AM

I liked the first GUI better, it made more sense.
  • 0

#16 FireFly

FireFly
  • Members
  • 575 posts
  • LocationAustralia
  • Reputation:0

Posted 26 May 2007 - 12:34 PM

I like that idea bb00. I'm not sure about all of the little PDN symbols though.
  • 0
Posted Image

#17 OmgWtfBbq

OmgWtfBbq
  • Members
  • 195 posts
  • Reputation:0

Posted 27 May 2007 - 12:49 AM

I like that idea bb00. I'm not sure about all of the little PDN symbols though.

Haha firefly. This looks great though. It's not as exciting as the effects but it is much needed tool.

Cheers for making it ;D
  • 0

#18 moc426

moc426
  • Members
  • 369 posts
  • Reputation:3

Posted 13 June 2007 - 06:11 AM

Updated, see details in original post.
  • 0

#19 Ash

Ash

    Former Moderator

  • Members
  • 6,381 posts
  • Locationhttp://tinyurl.com/6kqz9v
  • Reputation:6

Posted 13 June 2007 - 06:30 AM

Much better thanks!!

Sometimes still doesn't show where the object is until click OK tho :?

Still very nice :)
  • 0

Posted Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


#20 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 13 June 2007 - 07:19 AM

Is it me or there is a problem as soon as we use TOP align...?
  • 0