Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FxDynamicParameterAPI_v4 Method Request: -(FxParameterType)parameterType:(UInt32)parameterID #424

Open
belisoful opened this issue Nov 29, 2024 · 1 comment

Comments

@belisoful
Copy link

Apple Feedback Assistant ID: MISSING!

Is your feature request related to a problem? Please describe.
In writing FxPlug frameworks, keeping track of the type for dynamic parameters is an outrageous complex engineering task that would be simplified with this one simple call. We may not know what a parameter's type is as a framework developer.

Exposing this property of parameters is absolutely critical.

Describe the solution you'd like
Please add

-(FxParameterType)parameterType:(UInt32)parameterID

to FxDynamicParameterAPI_v4.

Describe alternatives you've considered
putting an abstraction layer on the related protocol to trap the Parameter Creation and deletion methods to keep track of parameter types in a Custom hidden non-animatable inaccessible parameter that holds an array of parameters and their related types. Keeping track of this information is a headache.

Additional context

We would also need something like this:

typedef NS_ENUM(NSInteger, FxParameterType) {
	FxParameterType_None = 0,
	FxParameterType_Angle = 1,
	FxParameterType_RGBA = 2,
	FxParameterType_RGB = 3,
	FxParameterType_Custom = 4,
	FxParameterType_Float = 5,
	FxParameterType_FontMenu = 6,
	FxParameterType_Gradient = 7,
	FxParameterType_Help = 8,
	FxParameterType_Histogram = 9,
	FxParameterType_ImageRef = 10,
	FxParameterType_Integer = 11,
	FxParameterType_PathID = 12,
	FxParameterType_Percent = 13,
	FxParameterType_Point = 14,
	FxParameterType_Menu = 15,
	FxParameterType_PushButton = 16,
	FxParameterType_String = 17,
	FxParameterType_Toggle = 18,
	FxParameterType_Group = 19
} ;
typedef UInt32 FxParameterId;

#define kFxParameterId_None		-1
#define kFxParameterId_Root		0

I suspect the type is already internal, and just needs to be exposed. It'd be nice to have the FxParameterId as being its own type.

@belisoful
Copy link
Author

This method is absolutely necessary for FxPlug framework developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants