1
2
3 import nuke
4
6 """
7 Clears the buffer memory cache by calling nuke.memory("free")
8 If args are supplied they are passed to nuke.memory as well
9 eg. nuke.memory( "free", args )
10 """
11 if args is not None and len(args) > 0:
12 nuke.memory("free", args)
13 else:
14 nuke.memory("free")
15
17 """
18 Gets info on memory by calling nuke.memory("info")
19 If args are supplied they are passed to nuke.memory as well
20 eg. nuke.memory( "info", args )
21 """
22 if args is not None and len(args) > 0:
23 return nuke.memory("info", args)
24 else:
25 return nuke.memory("info")
26
34