Obi Official Forum
Help Rope dynamic color change - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Rope dynamic color change (/thread-3390.html)



Rope dynamic color change - bubbbles - 04-04-2022

Hello,

Can some please help me how I would dynamically change the color of a rope like this video?

https://drive.google.com/drive/folders/1aFOmKdJ0z-046Btle3LFZeuxwb0HGBHG?usp=sharing

Thanks in advance


RE: Rope dynamic color change - josemendez - 04-04-2022

(04-04-2022, 08:35 AM)bubbbles Wrote: Hello,

Can some please help me how I would dynamically change the color of a rope like this video?

https://drive.google.com/drive/folders/1aFOmKdJ0z-046Btle3LFZeuxwb0HGBHG?usp=sharing

Thanks in advance

Hi!

Simply write your desired color values into the solver.colors array. See:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html

Also make sure that whatever material you're using to render the rope has a shader that makes use of vertex colors. Otherwise no colors will be shown.


RE: Rope dynamic color change - bubbbles - 04-04-2022

(04-04-2022, 08:41 AM)josemendez Wrote: Hi!

Simply write your desired color values into the solver.colors array. See:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html

Also make sure that whatever material you're using to render the rope has a shader that makes use of vertex colors. Otherwise no colors will be shown.

Cool thanks for the quick reply Sonrisa