More freedom for vector graphics

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
lazi
Posts: 295
Joined: Fri Feb 25, 2011 12:08 am

More freedom for vector graphics

Post by lazi » Mon Aug 08, 2016 12:05 am

We can create vectorgraphics and draw it to a vector layer.
It would be nice if we could use ConvertToBrush to make a vector brush from vector layer, or even better from vector layers to create multicolour vector brushes.

With the ability to create vector brushes, the next wish would be to save it as svg files.

May the to-do list can have these features?

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: More freedom for vector graphics

Post by airsoftsoftwair » Thu Aug 11, 2016 4:08 pm

Yes, some improvements would certainly be nice here, although SVG export is really not difficult to do. You could even do that in Hollywood but Hollywood would probably have to offer a function like IteratePath() or so which would run a callback for every element in the path...

User avatar
lazi
Posts: 295
Joined: Fri Feb 25, 2011 12:08 am

Re: More freedom for vector graphics

Post by lazi » Sun Aug 14, 2016 8:54 am

IteratePath() would be nice, but while I can load svg only to vectorbrush and not to a path, it does not help to modify it or save it to a vector file.
If I create the path obviously have the coordinates to do whatever.
The missing link is between a path and a vectorbrush. Yes, I can display path with DrawPath, but it would be easier sometimes to convert to vectorbrush and handle in the same manner with other brushes.
On the other hand, if there will be IteratePath() than a ConverToPath() would be cool for vectorbrushes.

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: More freedom for vector graphics

Post by airsoftsoftwair » Sun Aug 14, 2016 9:19 pm

Well, loading SVGs into Hollywood paths certainly won't come because that's a hell of work. Hollywood paths are very limited in functionality in comparison to what SVG can do. Concerning vector brushes, Hollywood doesn't really know anything about them because they're usually handled by plugins. They're pretty much a black box to Hollywood. It would be possible to allow Hollywood paths to be converted into vector brushes but definitely not the other way round because Hollywood has no idea about the contents of vector brushes.

User avatar
lazi
Posts: 295
Joined: Fri Feb 25, 2011 12:08 am

Re: More freedom for vector graphics

Post by lazi » Mon Aug 15, 2016 8:14 am

possible to allow Hollywood paths to be converted into vector brushes
That would be enough I think. For a multi coloured vector drawing that would be great help to handle it in one object.

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: More freedom for vector graphics

Post by airsoftsoftwair » Mon Feb 27, 2017 1:40 pm

Code: Select all

- New: PathToBrush() allows you to convert one (or more) path object(s) into a vector brush; the
  individual paths can be given different colors and drawing styles which is quite a powerful
  feature to create multi-coloured paths by combining them in a vector brush; alternatively,
  ConvertToBrush() also supports a #VECTORPATH source now; usage is similar to the new PathToBrush()
  command
- New: PathItems() returns an iterator function which you can use together with a generic for loop
  to iterate over all items in a path object

SamuraiCrow
Posts: 157
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: More freedom for vector graphics

Post by SamuraiCrow » Mon Feb 27, 2017 9:13 pm

Good news! :)

ntromans
Posts: 30
Joined: Fri Jan 11, 2013 1:06 am

Re: More freedom for vector graphics

Post by ntromans » Sat Apr 22, 2017 3:20 pm

Great to see those addtions to 7.0. So will it be possible to save out vector brushes at some point as SVG? I'm currently working on program which makes use of vector graphics and to be able to save as SVG would be incredibly useful.

Cheers,
Nigel.

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: More freedom for vector graphics

Post by airsoftsoftwair » Mon Apr 24, 2017 4:35 pm

I think an SVG saver could be implemented rather quickly using the new PathItems() function.

Post Reply