1
$\begingroup$

In this example, I have assigned a velocity attribute with animation nodes and then trying to access the velocity attribute with OSL script in object-material. But it is not working, why ??? enter image description here enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

I don't think Blender allows such use of properties, see Add custom object properties as usable attributes. For alternative methods. See the Coloring Objects section of this answer.

$\endgroup$
2
  • $\begingroup$ Thanks @OmarAhmad. Yeah, I'm using vertex color to transfer data from animation nodes to object-material, but it is not very efficient for large number of objects. $\endgroup$
    – 3DSinghVFX
    Sep 26, 2018 at 13:10
  • $\begingroup$ @3DSingh The answer I linked include an approach that is much more efficient than vertex colors. See the Object Index section of the answer. $\endgroup$
    – Omar Emara
    Sep 26, 2018 at 13:11

You must log in to answer this question.

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