Go to: Synopsis. Return value. Keywords. Flags. MEL examples.
ogs [-deviceInformation] [-disposeReleasableTextures] [-dumpTexture string] [-enableHardwareInstancing boolean] [-fragmentEditor string] [-fragmentXML string] [-gpuMemoryTotal int] [-gpuMemoryUsed] [-isLegacyViewportEnabled] [-isRemoteGLSessionEnabled] [-isWinRemoteSession] [-pause] [-rebakeTextures] [-regenerateUVTilePreview string] [-reloadTextures] [-reset] [-shaderSource string] [-toggleTexturePaging] [-traceRenderPipeline boolean]
ogs is NOT undoable, queryable, and NOT editable.
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.string | Result of the operation |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-deviceInformation(-di)
|
|
|||
|
||||
-disposeReleasableTextures(-drt)
|
|
|||
|
||||
-dumpTexture(-dt)
|
string
|
|||
|
||||
-enableHardwareInstancing(-hwi)
|
boolean
|
|||
|
||||
-fragmentEditor(-fe)
|
string
|
|||
|
||||
-fragmentXML(-xml)
|
string
|
|||
|
||||
-gpuMemoryTotal(-gmt)
|
int
|
|||
|
||||
-gpuMemoryUsed(-gpu)
|
|
|||
|
||||
-isLegacyViewportEnabled(-lve)
|
|
|||
|
||||
-isRemoteGLSessionEnabled(-rgl)
|
|
|||
|
||||
-isWinRemoteSession(-irs)
|
|
|||
|
||||
-pause(-p)
|
|
|||
|
||||
-rebakeTextures(-rbt)
|
|
|||
|
||||
-regenerateUVTilePreview(-rup)
|
string
|
|||
|
||||
-reloadTextures(-rlt)
|
|
|||
|
||||
-reset(-r)
|
|
|||
|
||||
-shaderSource(-ss)
|
string
|
|||
|
||||
-toggleTexturePaging(-ttp)
|
|
|||
|
||||
-traceRenderPipeline(-trp)
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
// Reset the database for all panels running the OGS renderer. // Returns the list of panels affected. If no panels are running the // OGS renderer, stop OGS from listening to DG changes. ogs -reset // Result: modelPanel1 // // Set the gpu memory limit to 2048 MB. Memory management systems // will attempt to avoid going over this limit. Can be used to reserve // memory for other applications. ogs -gpuMemoryTotal 2048 // Output the current gpu memory limit in MB. ogs -q -gpuMemoryTotal // Result: 2048 // // Output an estimate of the amount of currently allocated gpu memory by // Maya in MB. ogs -gpu // Result: 148 //