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

| improve this answer | |
$\endgroup$
  • $\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 '18 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 '18 at 13:11

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.