6
$\begingroup$

I have a project where I am pre-rendering frequently via File Output nodes, which are numerous and spread throughout the node tree. Is there some way to select all nodes of a certain type with a key command (same as selected)?

$\endgroup$
7
$\begingroup$

Here is a handy dandy little script that will select all nodes of the same type as the active selected node

import bpy

#Get composite nodes
nodes = bpy.context.scene.node_tree.nodes
#Get indentifer of the active node
find_type = bpy.context.scene.node_tree.nodes.active.bl_rna.identifier
#loop through nodes
for node in nodes:
    #if node has the same idetifier
    if node.bl_rna.identifier == find_type:
        #select it
        node.select = True

In action:

enter image description here

$\endgroup$
  • 2
    $\begingroup$ Cool, if there is no built in functionality I'll save this into my startup file. Will be very useful. $\endgroup$ – VRM Nov 21 '17 at 1:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.