nodesearch package

Submodules

nodesearch.matchers module

class nodesearch.matchers.Matcher

Bases: object

Base class for all matchers.

fast = False
matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

normalized()

Returns a normalized version of this matcher.

class nodesearch.matchers.All

Bases: nodesearch.matchers.Matcher

Matches all nodes in the network.

fast = True
matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

class nodesearch.matchers.Null

Bases: nodesearch.matchers.Matcher

Matches no nodes.

fast = True
matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

class nodesearch.matchers.Name(name, exact=False)

Bases: nodesearch.matchers.Matcher

Matches nodes by name.

fast = True
matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

normalized()

Returns a normalized version of this matcher.

class nodesearch.matchers.Parm(name, op, value)

Bases: nodesearch.matchers.Matcher

Matches by the value of a parameter.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

ops = {'': <built-in function eq>, '!=': <built-in function ne>, '<': <built-in function lt>, '<=': <built-in function le>, '=': <built-in function eq>, '=<': <built-in function le>, '==': <built-in function eq>, '=>': <built-in function ge>, '>': <built-in function gt>, '>=': <built-in function ge>, '|=': <function <lambda>>}
class nodesearch.matchers.RawParm(name, value, is_pattern=False, exact=False)

Bases: nodesearch.matchers.Matcher

Matches by the raw (unevaluated, unexpanded) value of a parameter.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

class nodesearch.matchers.ParameterState(condition)

Bases: nodesearch.matchers.Matcher

Matches nodes which have at least one parameter in a certain state.

ParameterState(“off_default_parm”) matches nodes with at least one parameter that is not at its default value.

ParameterState(“spare_parm”) matches nodes with at least one spare parameter.

ParameterState(“animated_parm”) matches nodes with at least one animated (time-dependent) parameter.

ParameterState(“expression_parm”) matches nodes with at least one non-default parameter with an expression.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

class nodesearch.matchers.State(name, value)

Bases: nodesearch.matchers.Matcher

Matches node flags and certain other states (has a comment, has a warning, has an error, has descriptive text) being on or off.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

states = {'comment': <function <lambda>>, 'error': <function <lambda>>, 'warning': <function <lambda>>}
class nodesearch.matchers.NodeType(typename, typecat=None, exact=False)

Bases: nodesearch.matchers.Matcher

Matches nodes with the given node type.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

normalized()

Returns a normalized version of this matcher.

class nodesearch.matchers.Wrapper(child)

Bases: nodesearch.matchers.Matcher

Base class for matchers that modify the behavior of other matchers.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

class nodesearch.matchers.Not(child)

Bases: nodesearch.matchers.Wrapper

Reverses the meaning of the wrapped matcher.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

class nodesearch.matchers.Input(child)

Bases: nodesearch.matchers.Wrapper

Matches nodes that have an input that matches the wrapped matcher.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

class nodesearch.matchers.Output(child)

Bases: nodesearch.matchers.Wrapper

Matches nodes that have an output that matches the wrapped matcher.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

class nodesearch.matchers.Group(children, intersect=True)

Bases: nodesearch.matchers.Matcher

Combines the results of multiple sub-matchers.

matches(node, ignore_case=False)

Returns True if this criterion matches the given hou.Node instance.

nodes(network, ignore_case=False, recursive=False, recurse_in_locked_nodes=True)

Returns a sequence of nodes matching this criterion in the given network. :param network: a hou.Node representing the parent network.

normalized()

Returns a normalized version of this matcher.

nodesearch.parser module

nodesearch.parser.parse_query(qstring)
nodesearch.parser.select(querystring=None, query=None, network=None, editor=None, frame=False)

nodesearch.query module

nodesearch.query.aint(stream, i, context)
nodesearch.query.anon_among1(stream, i, context)
nodesearch.query.anon_seq1(stream, i, context)
nodesearch.query.anon_seq10(stream, i, context)
nodesearch.query.anon_seq2(stream, i, context)
nodesearch.query.anon_seq3(stream, i, context)
nodesearch.query.anon_seq4(stream, i, context)
nodesearch.query.anon_seq5(stream, i, context)
nodesearch.query.anon_seq6(stream, i, context)
nodesearch.query.anon_seq7(stream, i, context)
nodesearch.query.anon_seq8(stream, i, context)
nodesearch.query.anon_seq9(stream, i, context)
nodesearch.query.anon_string1(stream, i, context)
nodesearch.query.anon_string10(stream, i, context)
nodesearch.query.anon_string11(stream, i, context)
nodesearch.query.anon_string12(stream, i, context)
nodesearch.query.anon_string13(stream, i, context)
nodesearch.query.anon_string2(stream, i, context)
nodesearch.query.anon_string3(stream, i, context)
nodesearch.query.anon_string4(stream, i, context)
nodesearch.query.anon_string5(stream, i, context)
nodesearch.query.anon_string6(stream, i, context)
nodesearch.query.anon_string7(stream, i, context)
nodesearch.query.anon_string8(stream, i, context)
nodesearch.query.anon_string9(stream, i, context)
nodesearch.query.any_(stream, i, context)
nodesearch.query.atom(stream, i, context)
nodesearch.query.digit(stream, i, context)
nodesearch.query.escchar(stream, i, context)
nodesearch.query.exact(stream, i, context)
nodesearch.query.expr(stream, i, context)
nodesearch.query.expr1(stream, i, context)
nodesearch.query.globchars(stream, i, context)
nodesearch.query.grammar(stream, i, context)
nodesearch.query.group(stream, i, context)
nodesearch.query.hspace(stream, i, context)
nodesearch.query.identifier(stream, i, context)
nodesearch.query.isect(stream, i, context)
nodesearch.query.name(stream, i, context)
nodesearch.query.nodetype(stream, i, context)
nodesearch.query.number(stream, i, context)
nodesearch.query.parameter(stream, i, context)
nodesearch.query.parmstate(stream, i, context)
nodesearch.query.rawparm(stream, i, context)
nodesearch.query.state(stream, i, context)
nodesearch.query.streamend(stream, i, context)
nodesearch.query.string(stream, i, context)
nodesearch.query.tablename(stream, i, context)
nodesearch.query.union(stream, i, context)
nodesearch.query.vspace(stream, i, context)
nodesearch.query.ws(stream, i, context)

nodesearch.test_nodesearch module

nodesearch.test_nodesearch.parse_q(qstring)
nodesearch.test_nodesearch.test_complex_query()
nodesearch.test_nodesearch.test_empty_group()
nodesearch.test_nodesearch.test_empty_string()
nodesearch.test_nodesearch.test_exact()
nodesearch.test_nodesearch.test_exacts()
nodesearch.test_nodesearch.test_glob()
nodesearch.test_nodesearch.test_group()
nodesearch.test_nodesearch.test_intersection()
nodesearch.test_nodesearch.test_name()
nodesearch.test_nodesearch.test_names()
nodesearch.test_nodesearch.test_nodetype()
nodesearch.test_nodesearch.test_not()
nodesearch.test_nodesearch.test_parameter()
nodesearch.test_nodesearch.test_parameters()
nodesearch.test_nodesearch.test_parmstate()
nodesearch.test_nodesearch.test_state()
nodesearch.test_nodesearch.test_states()
nodesearch.test_nodesearch.test_string_parameter()
nodesearch.test_nodesearch.test_union()
nodesearch.test_nodesearch.test_whitespace()

Module contents

nodesearch.node_types(category)