Change Commands for Custom AE UI

Hi all,

I'm trying to write a AE template for a custom node and I am have a couple of questions:

For the enum UI attrEnumOptionMenuGrp, how can you enable or disable specific choices? There is the -enable flag for the control as a whole, but I only want to remove certain options.

For the file choosing widget attrNavigationControlGrp, does anyone know how to get the disconnect commands to work? I have tried using -d or -dl (disconnect or delete) flags, and yet none of my custom functions are called.

If anyone has any ideas at all, I would love to hear them!

Thanks!