Sep 2019
1 / 3
Sep 2019
Dec 2019

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'

  • created

    Sep '19
  • last reply

    Dec '19
  • 2

    replies

  • 2.7k

    views

  • 2

    users

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.

2 months later

closed Dec 20, '19

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