-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from adrianpueyo/release_v1.1.0
Release v1.1.0
- Loading branch information
Showing
23 changed files
with
199 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.pyc | ||
extras/.DS_Store | ||
.DS_Store | ||
*.dat |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import nuke | ||
nuke.pluginAddPath("stamps") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Camera { | ||
projection_mode {{"\[expression \[value the_cam]projection_mode(\[value the_frame])]"}} | ||
focal {{"\[expression \[value the_cam]focal(\[value the_frame])]"}} | ||
haperture {{"\[expression \[value the_cam]haperture(\[value the_frame])]"}} | ||
vaperture {{"\[expression \[value the_cam]vaperture(\[value the_frame])]"}} | ||
near {{"\[expression \[value the_cam]near(\[value the_frame])]"}} | ||
far {{"\[expression \[value the_cam]far(\[value the_frame])]"}} | ||
win_translate {{"\[expression \[value the_cam]win_translate.u(\[value the_frame])]"} {"\[expression \[value the_cam]win_translate.v(\[value the_frame])]"}} | ||
win_scale {{"\[expression \[value the_cam]win_scale.u(\[value the_frame])]"} {"\[expression \[value the_cam]win_scale.v(\[value the_frame])]"}} | ||
winroll {{"\[expression \[value the_cam]winroll(\[value the_frame])]"}} | ||
focal_point {{"\[expression \[value the_cam]focal_point(\[value the_frame])]"}} | ||
fstop {{"\[expression \[value the_cam]fstop(\[value the_frame])]"}} | ||
name DummyCam | ||
help "DummyCam by Adrian Pueyo\n\nCamera that apart from the matrices also grabs all the \"Projection\" values from the upstream camera that it's connected to. Turns into a default Camera if no Camera connected. Can also be used inside of groups and gizmos, as many levels deep as you want :D All using live and super fast TCL.\n\nUpdated v1.1: Now grabs the correct frame too (thanks Erwan Leroy for the idea).\n\nUpdated v1.2: Now accepts Nuke13's Camera3\n\nadrianpueyo.com, 2019-2021" | ||
onCreate "n = nuke.thisNode()\nfor k in \[\"projection_mode\",\"focal\",\"haperture\",\"vaperture\",\"near\",\"far\",\"win_translate\",\"win_scale\",\"winroll\",\"focal_point\",\"fstop\"]:\n n\[k].setFlag(0x0000000010000000)" | ||
addUserKnob {20 DummyCam l Defaults} | ||
addUserKnob {43 the_cam +INVISIBLE} | ||
the_cam "\[\n#DummyCam v1.2 - Updated 5 May 2021.\nset starting_point \"this.input0\"\nset default \"this.d_\"\n\n# If cam has no inputs, return the default.\nif \{\[exists \$starting_point]\} \{\n set x \[node \$starting_point]\n\} \{ \n return \$default\n\}\n\nset finished 0\nwhile \{\$finished != 1\} \{\n\n # First look for a Cam or Input or topnode.\n while \{\[class \$x] != \"Camera3\" && \[class \$x] != \"Camera2\" && \[class \$x] != \"Camera\" && \[class \$x] != \"Input\" && \$x != \[topnode \$x]\} \{\n set x \[node \$x.input0]\n \}\n\n # Then, check if node is a cam (and return), and otherwise, if it's an input, see if the parent exists and move to it.\n if \{\[class \$x]==\"Camera3\"||\[class \$x]==\"Camera2\"||\[class \$x]==\"Camera\"\} \{\n set x \[append x \".\"]\n return \$x\n \} \{ \n if \{ \[class \$x]==\"Input\" \} \{ \n set inp \"\$x.parent.input\"\n set inputNum \[value \$x.number]\n set inp \[append inp \$inputNum]\n if \{ \[exists \$inp] \} \{\n set x \[node \$inp]\n \} \{ \n set finished 1\n \}\n \} \{ \n set finished 1\n \}\n \}\n\}\nreturn \$default\n]" | ||
addUserKnob {43 the_frame +INVISIBLE} | ||
the_frame "\[\nset the_camera \[string trimright \[value the_cam] .]\nif \{\[exists \$the_camera]\} \{\n return \[value \$the_camera.frame]\n\} \{ \n return \[frame]\n\}\n]" | ||
addUserKnob {4 d_projection_mode l projection M {perspective orthographic uv spherical ""}} | ||
addUserKnob {7 d_focal l "focal length" R 0 100} | ||
d_focal 50 | ||
addUserKnob {7 d_haperture l "horiz aperture" R 0 50} | ||
d_haperture 24.576 | ||
addUserKnob {7 d_vaperture l "vert aperture" R 0 50} | ||
d_vaperture 18.672 | ||
addUserKnob {7 d_near l near R 0 10} | ||
d_near 0.1 | ||
addUserKnob {7 d_far l far R 0 10000} | ||
d_far 10000 | ||
addUserKnob {30 d_win_translate l "window translate"} | ||
addUserKnob {30 d_win_scale l "window scale"} | ||
d_win_scale {1 1} | ||
addUserKnob {7 d_winroll l "window roll" R 0 45} | ||
addUserKnob {7 d_focal_point l "focal distance" R 0 10} | ||
d_focal_point 2 | ||
addUserKnob {7 d_fstop l fstop R 0 30} | ||
d_fstop 16 | ||
addUserKnob {26 version l " " t "Updated 5 May 2021" T "<span style=\"color:#666\"><br/><b>DummyCam v1.2</b> - <a href=\"http://www.adrianpueyo.com\" style=\"color:#666;text-decoration: none;\">adrianpueyo.com</a>, 2019-2021</span>"} | ||
} |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Directory needed by W_hotbox. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Directory needed by W_hotbox. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Directory needed by W_hotbox. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import stamps |
File renamed without changes
Oops, something went wrong.