How to query GPU cache?

I would like to query the GPU cache under ‘Show>GPU cache’, right above the viewport
I use this script:

import maya.cmds as cmds
print cmds.modelEditor(‘modelPanel4’, query = True, pluginObjects = True)

but it return only ‘None’

I see two issues:

  1. pluginObjects is not queryable in the standard way. (you would use the ‘queryPluginObjects’ flag instead)

2)the pluginObjects flag takes two arguments: [string, bool]

so the end result would be something like:
pm.modelEditor(‘modelPanel5’, edit=True, pluginObjects=[‘’, True])

the docs suggest the return value should be the string name of the editor.

This topic was automatically closed after 90 days. New replies are no longer allowed.