Jump to content

Help! to vex


Recommended Posts


i have a vex there turns the color of RBD object in to red on impact.

but here comes my problem, i can't find a way to turn it green one frame after the object have turn to red.

anyone there can help me with that.


and here is the vex i am using.

if (@hit_total == 0)
@Cd = set(0.10,0.0275 ,0);

@Cd = set((@hit_total+@id+5), 0, 0);



Edited by Gelle
Link to comment
Share on other sites

Can't you just simplify this like shown below? I assume you already set the color of the objects to red before starting the simulation and you just want to change it when they hit the floor. 

if(@hit_total > 0) {

@Cd = set(0,1,0);



Let me know if it works. Can't test this as I'm not behind my Houdini desk.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...