Controlling active value with paint colors

   3480   1   1
User Avatar
Member
129 posts
Joined: June 2016
Offline
Hello guys,
I'm trying to control an active value node using color point coming from a paint node. I'd like to divide active and passive objects using the painted points. I used a paint node after a voronoi fracture to paint white color on some of the faces of a torus. Now I would like to access the color values inside the “Active” parameter of the active value node but I can't figure out the correct syntax to achieve this. The tutorial I'm following (Digital Tutors controlling fracture) is about H12 and I think something has changed in syntax because many things don't work. Anyone can help ?
Thank you

Ray

Attachments:
active.jpg (364.6 KB)

User Avatar
Member
483 posts
Joined: Dec. 2006
Offline
if(@Cd.r < 0.5, 1, 0)
but maybe you need a solver, too, if the color is animated…

have a look here, too, please:
http://forums.odforce.net/topic/21501-set-fractured-rbd-activation-based-on-point-attribute/ [forums.odforce.net]
rbd_activation.hip stolen there ^^^^^^^^^^^^^^^^^^^^^^
Edited by matthias_k - July 9, 2016 16:50:30

Attachments:
if-statement.hip (61.7 KB)
rbd_activation.hip (347.6 KB)
active-value.jpg (168.8 KB)

English is not my native language, sorry in advance for any misunderstanding :-)
  • Quick Links