Modeling "parametric" pencils

Hello,
I’m relatively new to Blender, and, for an image I just finished, I needed some pencils.
I modeled them with 4 separate objects (body, body paint, conic tip, and bottom circle),
and ‘hook’ed some vertices inside the objects to a common ‘empty’, which worked well
enough to control the pencils’ length.

I had a harder time with the material for the 3 colored parts (I used a single material
for the 3). I tried to ‘link’ the materials, but as soon as I 'duplicate’d a pencil group,
the link seemed broken, and, anyway, I had to define a new material for each color,
which was tedious.

Say I’d want to create an image with quite a quantity of pencils :

  1. is the hook method valid, or would it be better to set up an armature to
    control the length of the pencils ?

  2. is it possible to have the pencil’s color as some kind of parameter, without
    the need to define a new material for each color and synced between the 3
    parts that need it ?


Use the same material for the coloured area of the objects and set it to be random using the random output of the object info node and a colour ramp node
See https://blenderartists.org/forum/showthread.php?332716-Random-Colors-for-Textured-Particles

  1. yes, multiple ways, one is to have the texture take coordinates from the duplication object so it can take the color from an image

Thanks to you both, these are interesting methods, I’ll explore that.