Activating/deactivating parameters

I’m looking for days how to have different parameters depending of the objects/class/view i draw.
Is it possible or do I have to start with all of them and to change values at each object/class/view i call?

@Burobox You can use parameter.clear() to clear the parameters, then redisplay the new parameters you want.