5
$\begingroup$

How do I copy from one object to other selected object only the "diffuse colour"?

Or any other material property to other multiple selected objects materials?

Why "Copy To selected" is greyed out in right click menu?

Copy diffuse colour from B to all objects in the column A

enter image description here


Note 1: i know to the manual or long process of hovering over th colour and copying it "Ctr+C". And then select target object go to material and hover on colour and paste "Ctrl+V"

Note 2: I don't intend to copy complete or all material properties

$\endgroup$
  • $\begingroup$ possible duplicate of Can I delete all materials of all objects in a scene quickly?. Not exactly the same question, but in the same way. $\endgroup$ – Leon Cheung Feb 9 '15 at 4:20
  • $\begingroup$ @LeonCheung no this is not the same pls check the note 2 which clearly says it's not about copying complete material but just one property of it. $\endgroup$ – ashwin Feb 9 '15 at 4:25
  • $\begingroup$ You are right. sorry about that. $\endgroup$ – Leon Cheung Feb 9 '15 at 4:29
  • $\begingroup$ @LeonCheung thanks. Can you remove duplicate question "label " for this question please. $\endgroup$ – ashwin Feb 9 '15 at 5:03
  • $\begingroup$ Done. :) I believe this can be done by a script with a few lines, maybe you need to add a new tag "python" to draw more attentions. I think why it isn't currently supported because it needs to know the target slots, even only one slot for each objects, and materials got 4 types: Surface, Wire, Volume, Halo, which is also an extra condition. $\endgroup$ – Leon Cheung Feb 9 '15 at 6:28
5
$\begingroup$

I think a small python script is the only way. This script only works for Blender Render.

import bpy

active_obj = bpy.context.object
active_obj_material = active_obj.active_material

for obj in bpy.context.selected_objects:
    if obj != active_obj:
        obj.active_material.diffuse_color = active_obj_material.diffuse_color

I use active_material so that objects with more than one material will use the material that is selected in the list, rather than forcing slot1 to always be used.

$\endgroup$
0
$\begingroup$

There is a possible work around with the node editor if you wanna avoid python. You can 'ctrl c' a color node from object 1, select object 2 and then 'ctrl v' to drop it into object 2's material node editor:

1.

Node editor of object 1, with colour (red) I'd like to copy - 'ctrl+c' with relevant node selected

2.

Node editor of object 2 with wrong colour (orange)

3.

Paste 'ctrl+v' to drop in the node with desired colour node. Use the eye dropper tool at this stage if you'd like a different property node to have the red colour.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.