Seems like this must exist as a method for operators, but I can’t seem to find the method.
It’d be just lovely if there was a method to reset all of an operators parameters to defaults. I know that you can loop through the pars collection and then reset from there, but it seems like there are a few holes in that approach. Namely that there are some pars that don’t seem to have default vals.
For example, looking at a level TOP there are 8 pars from the common page that are missing defaults - which breaks an effort to loop through pars, and re-set them to their default vals.
From the level TOP the missing defaults are:
Here’s a tox to illustrate what I’m seeing
base_missing_defaults.tox (670 Bytes)
In reality I guess there are two items on this wish-list:
- defaults for all parameter vals
- a built in python method for resetting all pars to their default vals