利用者:Bartekskorupa/tests/node efficiency tools
|UI location||Node Editor's Properties Panel or Ctrl Space|
|Version||3.00||Author(s)||Bartek Skorupa, Greg Zaal|
|Current version download||http://developer.blender.org/diffusion/BA/browse/master/node_efficiency_tools.py|
- 1 About
- 2 How To Use
- 3 Features
- 3.1 Lazy Connect
- 3.2 Lazy Mix
- 3.3 Merge
- 3.4 Batch change blend type / math operation
- 3.5 Change Mix Factor
- 3.6 Delete Unused Nodes
- 3.7 Swap Outputs
- 3.8 Reset Backdrop
- 3.9 Add UV Layout attribute node
- 3.10 Add Vertex Color attribute node
- 3.11 Shader Viewer
- 3.12 Frame Selected
- 3.13 Reload Images
- 3.14 Switch Node Type
- 3.15 Copy Settings
- 3.16 Copy Label
- 3.17 Clear Label
- 3.18 Modify Label
- 3.19 Add Texture Setup
- 3.20 Add Reroutes to Outputs
- 3.21 Link Active to Selected
- 3.22 Align Nodes
- 3.23 Select within frame (parent/children)
- 3.24 Detach Outputs
- 3.25 Link to Output Node
- 4 Links and Support
- 5 Known Issues
- 6 Credits and special thanks
Set of several tools that speed up working with nodes.
- Merge selected nodes using mix nodes, math nodes or mix/add shaders.
- Batch change blend type, math operation
- Batch change Factors of selected "Mix" and "Mix Shader" nodes
- Align nodes
- Copy settings from active to selected nodes
- Copy labels from active node, linked node or linked socket to selected nodes
- Modify labels of selected nodes.
- Switch node type.
- Add Image texture setup
- Add reroute nodes to outputs of selected nodes
- Link Active Node to Selected Nodes
- Relink from Render Layer to OpenEXR MultiLayer input image and vice versa.
- Delete Unused Nodes.
- Reset Backrop.
- Reload all images.
- Viewer node for Cycles Shaders.
- Detach outputs.
- Quickly link to output node (Composite or Output Material).
How To Use
Use menu in properties panel of Node Editor or CtrlSpace keyboard shortcut or individual shortcuts for tools
Drag holding down AltRMB
Merge outputs of two nodes using Mix Node or Mix Shader by dragging from one node to another while holding down AltRMB . Mix node or Mix Shader node will be added and outputs of the nodes will be connected to it.
Quickly add Mix, Math, Mix Shader or Add Shader nodes that will merge outputs of selected nodes.
Merge with automatic type detection
CtrlZero Ctrl+ Ctrl- Ctrl * Ctrl/ Ctrl< Ctrl>
Selected nodes‘ outputs will be merged using Mix, Math, Mix Shader or Add Shader nodes., depending on types of selected nodes.
Ctrl+ sets blend type or math operation to Add. When shaders are selected – Add Shader will be used
Ctrl * multiply blend type or math operation
Ctrl- subtract blend type or math operation
Ctrl/ divide blend type or math operation
CtrlZero mix blend type or when shaders are selected - Mix Shader node will be used
Ctrl> greater than math operation
Ctrl< less than math operation
Merge using Mix node
CtrlAltZero, CtrlAlt+, CtrlAlt-, Ctrl alt *, CtrlAlt/
Using CtrlAlt with proper keys will force to use Mix node for merging no matter what types of nodes are selected.
Merge using Math node
Ctrl⇧ Shift+, Ctrl⇧ Shift-, Ctrl shift *, Ctrl⇧ Shift/, Ctrl⇧ Shift<, Ctrl⇧ Shift>
Using Ctrl⇧ Shift with proper keys will force to use Math node for merging no matter what types of nodes are selected.
Batch change blend type / math operation
Alt↑, Alt↓, AltZero, Alt+, Alt-, Alt *, Alt/, Alt>, Alt<
Select mix nodes or math nodes and change their blend type or math operation at the same time. Use keys specified above. They will change blend type or operation accordingly to: mix, add, subtract, divide, less than, greater than. Use Alt↑ or Alt↓ to go through all available blend types or math operations.
Change Mix Factor
Alt←, ⇧ ShiftAlt←, Alt→, ⇧ ShiftAlt→
Change Factor of selected Mix nodes or Mix Shader nodes.
Use Alt→ to increase it by 0.1.
Use Alt← to decrease it by 0.1.
Use Alt⇧ Shift→ to increase it by 0.01.
Use Alt⇧ Shift← to decrease it by 0.01.
Use CtrlAlt⇧ Shift← to set factor to 0.0. Additional shortcut is CtrlAlt⇧ ShiftZero
Use CtrlAlt⇧ Shift→ to set factor to 1.0. Additional shortcut is CtrlAlt⇧ ShiftOne
Delete Unused Nodes
Clean your node tree. Delete all of the nodes that don’t contribute to the final result.
Select two nodes that have something linked to their outputs. AltS will swap the outputs. What originally was linked to output of the first node will now be linked to output of the second node and vice verca.
Reset position and scale of the backdrop.
Add UV Layout attribute node
(Add node menu)
Add attribute node with the attribute automatically set to UV Layout.
Add Vertex Color attribute node
(Add node menu)
Add attribute node with the attribute automatically set to vertex color.
Select nodes and „wrap“ them in Frame node by hitting ⇧ ShiftP. Immediately after that hit F6 to set the color and label of the Frame.
All of the images used in the node tree (Image inputs, textures) can be reloaded by hitting AltR.
Switch Node Type
Change the type of selected node(s) to any other type. Hit ⇧ ShiftS and you’ll get the menu ordered exactly the same as Add Node Menu. Choose the new type.
Copy settings of active node to all selected nodes of the same type.
Copy labels all selected nodes basing on various criteria.
Labels can be copied from labels (names) of active node ⇧ ShiftV,
or from names (labels) of nodes that are linked to selected ones or from the names of sockets that the selected nodes are linked to.
All options will be revealed in submenu after hitting ⇧ ShiftC
Clear labels of selected nodes.
Batch change labels of selected nodes. Add text to beginning, to end, replace parts of text.
Add Texture Setup
Select any shader node, CtrlT and image texture with nodes controlling co-ordinates will be added.
Add Reroutes to Outputs
Reroute nodes will be added and linked to each output of each selected node.
Link Active to Selected
\, K, ⇧ ShiftK, ", ⇧ Shift", (colon) ;, Shift ;
Link active node to selected nodes basing on various criteria.
\ - call main "Link Active to Selected" menu.
K – link active to all selected. Use ⇧ ShiftK to force to replace existing links.
(quote) " – link only to selected nodes that have the same name/label as active node (Shift (quote) " to replace existing links)
(colon) ; - link selected when name of output matches the name or label of selected node.
Handy for replacing sources. For example Render Layer to image (multi layer exr).
Align nodes horizontally or vertically. Same as S-X-0 or S-Y-0, but with even spacing between the nodes.
Select within frame (parent/children)
] – select all nodes wrapped in selected Frame node.
[ - select frame node that selected nodes are wrapped in.
Detach output of selected node leaving linked inputs.
Link to Output Node
In compositing – link to Composite output.
In materials – link to Material Output node.
Links and Support
- Questions, comments, suggestions, and bug reports should be sent to the author's email address.
- Video Tutorial at author's page (Outdated. Several new features not included there)
No known issues at the moment
Credits and special thanks
- Back to Extensions:2.6/Py/Scripts