Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This script will spawn Read nodes from the selected Write nodes using the frame range present in the selected Write nodes and automatically run a check for bad frames that are below a threshold in bytes and both, color the node in red and print a report with the results to the Nuke terminal.
Now it also allows you to set the default behavior for what it should do when there is a empty writer or nothing selected without prompting you each time. By default it won't do nothing if a write node or the selection is empty.
If you don't pass any argument it will assume the defaults, but if you want to change that (which you most likely will) just pass 4 arguments to it:
readwrites(blankread, check, threshold, report)
blankread (boolean):
Set to True it will create blank Read nodes for empty selections and Write nodes.
- Default is False which will do nothing.
check (boolean):
Set to True it will check the sequence for bad frames and color the node in Red if
something is found, if set to False it will skip the check intirely and ignore the other
arguments (threshold and report).
- Deafult is True
threshold (integer):
This sets the threshold value in bytes for the bad frames check.
- Default is 100000 bytes
report (boolean):
Set to True will print a report of the bad frames found by the check, False will do nothing.
This will only be consider if the check argument is set to True.
- Default is True
* Should be working fine with Nuke5.0vX now
Invisible menu entry for the menu.py so you can call it using a shortcut Alt+R
m = nuke.menu("Nuke") n = m.findItem("Edit") n.addCommand("@;Read Writes", "userscripts.readwrites()", "Alt+R")
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.