I want to get the current PC's Grabo (GPU) name in Maya+Python (including OpenMayaAPI).

Asked 2 years ago, Updated 2 years ago, 20 views

I am currently working on a system that prints log information on Maya, but I am looking for a way to get the name of the GPU (GeForce GTX, etc.) by Maya alone without using external software or libraries that require installation.

As far as I've looked into OpenMayaAPI, OpenMayaRender.Mrenderer.GPUDeviceHandle()" seems to not be able to find the name because the handler function is not found.

If anyone knows how to obtain GPU information by Maya alone (including built-in OpenMayaAPI, os, sys, etc.), please let us know.

python

2022-09-29 22:44

1 Answers

Self-resolved.

 from maya import cmds
cmds.ogs(di=True)

I was able to view the gravo information by describing it (Adapter section).


2022-09-29 22:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.