Skip to content

Commit

Permalink
Added deep read
Browse files Browse the repository at this point in the history
  • Loading branch information
mervinvb committed May 7, 2024
1 parent 05c8caf commit b091fbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hooks/tk-nuke_scene_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ def scan_scene(self):

reads.append({"node": node_name, "type": "Read", "path": path})

for node in nuke.allNodes("DeepRead"):

node_name = node.name()

# note! We are getting the "abstract path", so contains
# %04d and %V rather than actual values.
path = node.knob("file").value().replace("/", os.path.sep)

reads.append({"node": node_name, "type": "Read", "path": path})

# then the read geometry nodes
for node in nuke.allNodes("ReadGeo2"):
node_name = node.name()
Expand Down

0 comments on commit b091fbd

Please sign in to comment.