How to bring up a node's parameters window - Custom Parameters

Hi,
I would like to integrate a button in my UI that opens the parent’s custom parameters.
I know opening the parameters works with this python line:
me.parent().openParameters()
I’d like to know how I could automatically open the custom parameter page,
or even a window with only the custom parameters if that’s possible?
Cheers!

Hi @briekvangaever,

there is a slightly hidden parameter called stdswitcher which can be used to change the page display in a parameter window.
The pages are just sequentially numbered, so you you would have to figure out which number your custom page is and then switch to it as follows:

op('base1').par.stdswitcher = 3

This is not documented and might change.

cheers
Markus

PS: might be nicer though in general to make use of the Parameter COMP with the options to hide build in parameters, select specific pages or specific parameters etc…

Hi @briekvangaever,

multiple corrections or additions here. @rob pointed out that:

  • .par.stdswitcher was actually renamed to par.pageindex - it’s still undocumented but exists
  • you could also use op('operator').currentPage = 'Common' to get or set the current page by name. This is also documented on the OP Class page in our wiki: OP Class - Derivative

cheers
Markus

Cheers, thanks for the clear reply!