MCPcopy Create free account
hub / github.com/baldurk/renderdoc / iterAction

Function iterAction

docs/python_api/examples/renderdoc/iter_actions.py:11–17  ·  view source on GitHub ↗
(d, indent = '')

Source from the content-addressed store, hash-verified

9
10# Define a recursive function for iterating over actions
11def iterAction(d, indent = ''):
12 # Print this action
13 print('%s%d: %s' % (indent, d.eventId, d.GetName(controller.GetStructuredFile())))
14
15 # Iterate over the action's children
16 for d in d.children:
17 iterAction(d, indent + ' ')
18
19def sampleCode(controller):
20 # Iterate over all of the root actions

Callers 1

sampleCodeFunction · 0.85

Calls 3

printFunction · 0.85
GetNameMethod · 0.45
GetStructuredFileMethod · 0.45

Tested by

no test coverage detected