Jump to content

SVG export with color? (or maybe groups?)


Krion

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
Link to comment
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
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.
Note: Your post will require moderator approval before it will be visible.

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...