Jump to content

Best way to get color from multilist in vex?


Tatsuman

Recommended Posts

Hello Community, I am stuck on a problem to get colors from multi-list parameter. I am trying to implement picking a color from a multi-list parameter randomly and I wrote this vex below.

int seed = int(rand(@ptnum) * chf("colors"));

v@Cd = chv(sprintf("./color%dr",seed+1));

For some reason, it gives me black or white only... And I couldn't figure out why is this happening. Could someone advise me about this? Thank you in advance!
5ec7bf284aef5_X__Projects_Shundo_Harutabi.hiplc-HoudiniIndieLimited-Commercial18.0.3485_22_20205_01_31AM.thumb.png.d03ad8463f3b020f2e403223ef5a89f0.png
 

Harutabi.hiplc

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.

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