Jump to content

Custom Shapes


Recommended Posts

I used Inkscape and created a simple design. (It was a single geometry Star) saved it in XALM format. I put this file in Shapes Folder but none of the shapes created from Inkscape is appearing in Custom shapes. Is shapes created from Inscape doesn't appear in PDN? I have Windows 7 Home Basic, 64 bit machine and Intel core i3 processor. And it was the latest version of PDN and Inkscape I used.

Edited by Pratyush

Rl7un0O.png

Link to comment
Share on other sites

That's because Inkscape creates something else that paint.net wants.

<?xml version="1.0" encoding="UTF-8"?>
<!--This file is NOT compatible with Silverlight-->
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform">
  <Canvas Name="svg2" Width="744.09448819" Height="1052.3622047">
    <Canvas.RenderTransform>
      <TranslateTransform X="0" Y="0"/>
    </Canvas.RenderTransform>
    <Canvas.Resources/>
    <!--Unknown tag: sodipodi:namedview-->
    <!--Unknown tag: metadata-->
    <Canvas Name="layer1">
      <Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="path3336" StrokeThickness="1" Stroke="#FF000000" StrokeLineJoin="Miter" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat">
        <Path.Data>
          <PathGeometry Figures="M 356.56508 340.47013 85.62822 148.31242 187.98595 0 -143.12563 143.12563 -219.62981 0 -151.9094 -151.90939 175.43279 0 Z" FillRule="evenodd"/>
        </Path.Data>
      </Path>
    </Canvas>
  </Canvas>
</Viewbox>

That's what Inkscape makes and we want that PathGeometry data. We copy it and put in a file like this

<ps:SimpleGeometryShape xmlns="clr-namespace:PaintDotNet.UI.Media;assembly=PaintDotNet.Framework"
                        xmlns:ps="clr-namespace:PaintDotNet.Shapes;assembly=PaintDotNet.Framework"                 
                        DisplayName="Weird"
                        Geometry="M 356.56508 340.47013 85.62822 148.31242 187.98595 0 -143.12563 143.12563 -219.62981 0 -151.9094 -151.90939 175.43279 0 Z" />

This can then work in paint.net. Remember to put a DisplayName that you'd like.

 

BoltBait has more info in How to make custom shapes for paint.net 4.0.6+

  • Upvote 1

sig.jpg.7f312affa740bae49243c4439bc4a244.jpg

Link to comment
Share on other sites

Don't forget about the new ShapeMaker plugin http://forums.getpaint.net/index.php?/topic/32096-shapemaker-by-the-dwarf-horde-aug-5-2015/

It is a tool for creating new Shapes & can even import some other formats.

Link to comment
Share on other sites

  • 6 months later...
On 2/12/2016 at 3:46 AM, kml said:

Hi, i've downloaded many shapes, created a folder in the proper directory calling it Shapes, but nothing shows up in Paint net, am i missing anything some step or file to make them show up?

You should not have to create the directory (paint.net should have created it for you). So, I'm guessing you've put this directory in the wrong place. Or, you're not running the proper version of paint.net (4.0.6+).

Follow the directions here: http://boltbait.com/pdn/InstallingShapes.php

Link to comment
Share on other sites

That's true, i checked now and my version was 4.05 :) thank you very much for the great plugins you have made they are amazing <3:D :CheckForUpdates:

I've updated, now it's showing as a charm :D i'm very excited to try all those shapes Thanks!

Edited by kml
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...