Skip to content

Instantly share code, notes, and snippets.

"""List All Inputs
URL:
http://gist.github.com/khanrahan/
Description:
Print all file paths used in the current script.
"""
import nuke
@khanrahan
khanrahan / reload_reads.py
Last active February 6, 2024 03:30
reload_reads.py
'''
Reload Reads
URL:
http://gist.github.com/khanrahan/d7679e1e0f565d109a401fa136c26fb5/edit
Description:
Find all Read nodes and reload the file path. Useful to find any missing frames.
Usage:
'''
Change Colorspace on Selected
URL:
http://gist.github.com/khanrahan/8df19ce3dc06046a2c50cd86088495d1
Description:
Change colorspace on all selected nodes. Currently, only for Read nodes.
'''
"""
Enable Localization on Selected Nodes
URL:
http://gist.github.com/khanrahan/062ba5c96b6ae14cd2948b4b861ae3dd
Description:
Take selected nodes, and if a Read, enable localization.
"""
@khanrahan
khanrahan / autocrop_selected.py
Created April 4, 2023 19:21
Nuke - Autocrop Selected Nodes
'''
Autocrop Selected
URL:
http://gist.github.com/khanrahan/d4d6c954f6c4f2bb57774861a53fe714
Description:
Take selected nodes, and run an CurveTool Autocrop analysis.
Usage:
@khanrahan
khanrahan / close_all_properties.py
Last active December 11, 2022 21:03
Nuke - Close all open properties panels.
"""
Close All Properties Panels
URL:
http://gist.github.com/khanrahan/22fedc55805b478f4c1740f23d549a9e
Description:
Close all open properties panels.
"""
@khanrahan
khanrahan / update_local_on_selection.py
Created December 11, 2022 20:28
Nuke - Update Localization on Selected Nodes
"""
Update Localization on Selected Nodes
URL:
http://gist.github.com/khanrahan/cb3591b13057f5a47e8bcc02e67d32c6
Description:
Take selected nodes, and if a Read, update the localization.
"""
@khanrahan
khanrahan / set_merge_bbox_to_b.py
Last active December 11, 2022 20:15
Nuke - Set Merge node BBox knob to B
"""
Set selected merge nodes bbox knob to B (instead of the default union).
URL:
http://gist.github.com/khanrahan/29a71903a0f449e0c5a77949087a5755
Description:
Take selected nodes, and if a Merge, set the bbox knob to B instead of the default
union.
"""
@khanrahan
khanrahan / hook.py
Last active August 8, 2019 23:53 — forked from lcrs/hook.py
Initial hook.py including right click/copy clip path thing
#!/bin/env python
#******************************************************************************
#
# Filename: hook.py
#
# Copyright (c) 2008 Autodesk Canada Co.
# All rights reserved.
#
# Use of this software is subject to the terms of the Autodesk license
# agreement provided at the time of installation or download, or which
@khanrahan
khanrahan / # ufraw - 2018-06-08_15-31-42.txt
Created June 8, 2018 19:42
ufraw on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for ufraw on macOS 10.12.6
Build date: 2018-06-08 15:31:42