pymel.core.system.dgmodified

dgmodified(*args, **kwargs)

The dgmodifiedcommand is used to find out which nodes in the dependency graph have been modified. This is mostly useful for fixing instances where file new asks you to save when no changes have been made to the scene.

Derived from mel command maya.cmds.dgmodified

Example:

import pymel.core as pm

# list all modified nodes
pm.dgmodified()