1
$\begingroup$

I am Now making a model for an electrical component (Arduino) , I have an svg image for it , I inserted the image to Blender and I now want to extrude it to be 3D, but I do not want to extrude every object Manualy .. I want to extrude object by colors.

This is the image :

enter image description here

Note :-

  • I do not want to use a material which give a 3D Shape

  • I Want this Via Anything Python,Blender....

This How It looks After importing :

enter image description here

[Its not Seen Clearly visible because many objects are in the same position]

1

$\endgroup$
9
  • $\begingroup$ Could you please show how it looks after importing to Blender and converting to mesh? $\endgroup$
    – cgslav
    Commented Jan 13, 2018 at 9:02
  • 1
    $\begingroup$ Svg is not an image... $\endgroup$
    – m.ardito
    Commented Jan 13, 2018 at 9:10
  • $\begingroup$ @LukeD I added an image. $\endgroup$ Commented Jan 13, 2018 at 9:22
  • $\begingroup$ what you have above imho are several objects of "curve" type (importing from svg gives curves). Each separate "curve" will have a basic material color like in the svg.You cannot extrude curves. You have to convert them to "mesh" objects. Then imho you can select each object by their rgb colors, and extrude them accordingly. Manually or by python script. $\endgroup$
    – m.ardito
    Commented Jan 13, 2018 at 10:25
  • 2
    $\begingroup$ ...yes, true, sorry :) but, anyway, I would work with real mesh in this case. It's quite detailed and I would like to have mesh tools available (uvmap, eg)... I see no particular benefit here to keep them curves tbh. $\endgroup$
    – m.ardito
    Commented Jan 13, 2018 at 13:34

1 Answer 1

3
$\begingroup$

There may be a good answer within Blender. But if you just need to get the job done, you could open your SVG file in Inkscape. Inkscape has the ability to select objects by the same colors, e.g. select one object with the desired color and choose "Edit --> Select Same --> Fill Color". In this way you could create several SVG files, each containing only objects of the same color. You can then import each SVG file separately and give each one a group, so that you can select and edit the group easily.

I did this with a circuit board SVG (a two-dimensional one) I found online with the following results:

circuit board render

The curves can indeed be extruded without converting to meshes, simply modify the "Extrude" value under "Modification" in the "Geometry" section of the curve data tab. If you want to set all the extrude values at once, join the curves first. This is a good reason for keeping them as curves for as long as possible, btw.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .