Guest User

Untitled

a guest
Nov 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import bpy
  2.  
  3. #Get composite nodes
  4. nodes = bpy.context.scene.node_tree.nodes
  5. #Get indentifer of the active node
  6. find_type = bpy.context.scene.node_tree.nodes.active.bl_rna.identifier
  7. #loop through nodes
  8. for node in nodes:
  9. #if node has the same idetifier
  10. if node.bl_rna.identifier == find_type:
  11. #select it
  12. node.select = True
Add Comment
Please, Sign In to add comment