OGS is one of the viewport renderers. As there is a lot of effort involved in migrating functionality it will evolve over several releases. As it evolves it is prudent to provide safeguards to get the database back to a known state. That is the function of this command, similar to how ‘dgdirty’ is used to restore state to the dependency graph.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
rebakeTextures (rbt) | bool | ||
|
|||
reloadTextures (rlt) | bool | ||
|
|||
reset (r) | bool | ||
If used then reset the entire OGS database for all viewports using it. In query mode the number of viewports that would be affected is returned but the reset is not actually done. |
Derived from mel command maya.cmds.ogs
Example:
import pymel.core as pm
// Reset the database for all panels running the OGS renderer.
// Returns the number of panels affected.
pm.ogs( reset=True )
// Result: [modelPanel1] //