How to create custom parameter menus?

I want to create a Base COMP that has a custom parameter page with one menu. I’m following the documentation here: docs.derivative.ca/Page_Class

Inside my Base COMP, I have an Execute DAT with the following:

fns = {
# omitted - a dictionary with strings for keys and values
}

def onCreate():
	base = op('..')
	page = base.appendCustomPage('CustomPage')
	menu = page.appendMenu('Menu')
	names = list(fns.keys())
	base.par.Menu.menuNames = names
	base.par.Menu.menuLabels = names

The “CustomPage” page appears in the parent’s parameters, but the menu does not. What am I missing?

I bet you’re just not looking at the CustomPage page. I tried your code and was confused for a second because it’s a bit hard to tell. Click on the CustomPage label.

Also, you know you can create your parameters using the Component Editor, yes? You can still set the menu options the way you are doing it in this code.

Wow, embarrassing and true! It works fine :slight_smile:

For simpler lists I’d use the component editor GUI, but this is actually a drop-down of easing functions and there are a lot of them. Simpler to manage in code.

Understood. Sometimes it takes another pair of eyes.