Jump to content

VEX - > Ramp #pragma grouping


stevegh

Recommended Posts

Hey all,

I am having difficulty placing a ramp into a specific group as I've done with all my other pragmas. Intuitively I'd expect to pass the pragma the ramp_parm but it throws an error. Passing it the basis_parm, keys_parm, and values_parm seems less intuitive but also does nothing (at least that's good?).

Anyone know how to do this?

ie:


//RAMP
#pragma group Maps/Ramp rType rColor
#pragma label rType "Type"
#pragma choice rType 0 "Normal" 1 "Lighting" 2 "UVW"
#pragma ramp_rgb rColor rColorBasis rColorPos rColorVal
[/CODE]

returns:

[CODE]
Warning 2003: Unknown group parameter 'rColor'.
[/CODE]

as I'd expect, given I'm not declaring it in the surface initialization. If I simply omit rColor from the group I don't get an error, but the ramp is just stuck there at the bottom of the UI.

Thoughts?

-S

Link to comment
Share on other sites

Hey all,

I am having difficulty placing a ramp into a specific group as I've done with all my other pragmas. Intuitively I'd expect to pass the pragma the ramp_parm but it throws an error. Passing it the basis_parm, keys_parm, and values_parm seems less intuitive but also does nothing (at least that's good?).

Anyone know how to do this?

ie:


//RAMP
#pragma group Maps/Ramp rType rColor
#pragma label rType "Type"
#pragma choice rType 0 "Normal" 1 "Lighting" 2 "UVW"
#pragma ramp_rgb rColor rColorBasis rColorPos rColorVal
[/CODE]

returns:

[CODE]
Warning 2003: Unknown group parameter 'rColor'.
[/CODE]

as I'd expect, given I'm not declaring it in the surface initialization. If I simply omit rColor from the group I don't get an error, but the ramp is just stuck there at the bottom of the UI.

Thoughts?

-S

group must be placed after description of all parameters included in it.

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