stevegh Posted May 6, 2013 Share Posted May 6, 2013 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 Quote Link to comment Share on other sites More sharing options...
slayerk Posted May 6, 2013 Share Posted May 6, 2013 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?-Sgroup must be placed after description of all parameters included in it. Quote Link to comment Share on other sites More sharing options...
stevegh Posted May 7, 2013 Author Share Posted May 7, 2013 Perfect! Thanks Igor. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.