There are two types in this struct, the ‘HAPI_ParmType’ and the ‘HAPI_RampType’,
when I attempt to create the parameter UI in my app, surely I need to know the type of the parameter, but there are two types, it's confusing. What will the type(HAPI_ParmType) be if the rampType(HAPI_RampType) is HAPI_RAMPTYPE_FLOAT or HAPI_RAMPTYPE_COLOR ?
When I construct the parameter UI, should I find out the parameter is ramp or not first?
if TRUE, I create the ramp control.
if FALSE, I use the type(HAPI_ParmType) to decide what control should be created.
Is it the right order for conditional judgement?
And is the RampParm a kind of MultiParm? I want to know the relationship between this two concepts.
Basic question about 'type' and 'rampType' of HAPI_ParmInfo
3482 2 0-
- VincentKK
- Member
- 6 posts
- Joined: 10月 2018
- Offline
-
- brooke_sidefx
- スタッフ
- 404 posts
- Joined: 8月 2017
- Offline
-
- VincentKK
- Member
- 6 posts
- Joined: 10月 2018
- Offline
-
- Quick Links

