Panels only for one (or more) folder

Is it possibile to have a panel (metadata in my case) active by defaul for a folder while not active for others?

Best thing would be to have a button that changes from "list and no metadata panel" to "details+metadata panel",soemthing like toolbars that become active only for some views

It could be done using a script that triggers when changing folders (or activating folder tabs) and turns things on or off depending on the current location.

too complicated to try in these remaining 3 days. It was just something more,not something i need like the other things i asked. Thanks for answer

I have created a script that can support this.