Transfer color reference to Vex

   2002   6   1
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
I have a Null that I've put all my parameters on that I would change frequently. However I can't get my color to transfer and part of it is that I thought it would store it as a vector, but it doesn't seem to be. The first shot shows my interface with my controls. The second is my wrangle. The color with the relative reference outputs (1,1,1) instead of the color. I figure it's a different type but can't figure out what it is or how to convert it.
I'm also wondering why the relative reference pastes as control/top_colorr with two R's, when my parameter name only has one R.


Edited by eschwab - March 12, 2021 14:34:16

Attachments:
Capture2.JPG (14.1 KB)
Capture.JPG (23.2 KB)

User Avatar
Member
40 posts
Joined: Feb. 2018
Offline
Hi eschwab, I think if you remove one of the r's then it should work just fine. `top_colorr` is just the red channel/component of `topcolor`, hence the (1,1,1).
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
I dis try that but I’ll try it again. Or maybe make a reference for each one. Colorr, colorg , colorb, and see if that works if that’s true.
User Avatar
Member
40 posts
Joined: Feb. 2018
Offline
oops sorry I didn't see your `chs()`. It should be
v@Cd = chv("../control/top_color");
, and the following two `chf()` instead of `chs`.
User Avatar
Member
40 posts
Joined: Feb. 2018
Offline
Actually the two floats are okay the way they are, but with the current code they are evaluated in Hscript b/c they have `` around them. If you middle click on the wrangle's `VEXpression` parameter label you can see them evaluated and included here as strings. To avoid this, remove the ``'s and change chs() (which is in fact Hscript though highlighted here like VEX) to chf() (which is actually VEX).
User Avatar
Member
63 posts
Joined: Sept. 2014
Offline
Thank you. One of the most complete and helpful answers I’ve received.
User Avatar
Member
40 posts
Joined: Feb. 2018
Offline
Happy to help
  • Quick Links