Jump to content
Sign in to follow this  
Krion

SVG export with color? (or maybe groups?)

Recommended Posts

Hi,

 

I came across this video of Entagma lately for vector export and I am trying this out now.

I just want one frame like in the Entagma video at this moment, but I would also like to have fill and stroke color be read from some attributes, but I don't know any python and this forum post doesn't get me further right now (that otl doesn't work), so I was hoping someone could show me how you could do this. :) Otherwise: something like grouping paths together for selection in Illustrator work? That way I can at least color them more easily in Illustrator. 

 

Thanks! Appreciate the help.

Edited by Krion

Share this post


Link to post
Share on other sites

Read the color from the polyline/polygon using p.attribValue(‘Cd’), convert it to hex format and use it instead of black in write_path().

http://www.sidefx.com/docs/houdini/hom/hou/Polygon.html#attribValue

https://qiita.com/kit2cuz/items/0acc5b6352129db587cb

and learn this

and I wonder at the end why you need Illustrator :wub:

Have a nice day

Edited by srletak

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×