A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| cmd /c ""C:\Program Files (x86)\Git\bin\bash.exe" --login -i -- H:\Daily_Reports\yesterdayTogglReport.sh" |
| # Get all nodes of type Read | |
| readnodes = nuke.allNodes('Read') | |
| for readnode in readnodes: | |
| print readnode | |
| # List all knobs for selected node | |
| print( nuke.toNode('Read1') ) | |
| # List all knobs for specific node | |
| print( nuke.selectedNode() ) |
| from itertools import chain | |
| def parse_range(rng): | |
| parts = rng.split('-') | |
| if 1 > len(parts) > 2: | |
| raise ValueError("Bad range: '%s'" % (rng,)) | |
| parts = [int(i) for i in parts] | |
| start = parts[0] | |
| end = start if len(parts) == 1 else parts[1] | |
| if start > end: |