Last updated: Feb 11, 2025
You can set properties using the following syntax:
OBJECT.setPropertyValue(PROPERTY, VALUE)
or:
OBJECT.setKeyedPropertyValue(PROPERTY, KEY, VALUE)
You can retrieve the value of properties using the following syntax:
VARIABLE = OBJECT.getPropertyValue(PROPERTY)
or:
VARIABLE = OBJECT.getKeyedPropertyValue(PROPERTY, KEY)
where
is a node or output, OBJECT
is the name of the node property that your expression refers to, and PROPERTY
is the key
value for keyed properties. For example, the following syntax finds the Filter node and then sets
the default to include all fields and filter the KEY
field from downstream
data:Age
filternode = modeler.script.stream().findByType("filter", None) filternode.setPropertyValue("default_include", True) filternode.setKeyedPropertyValue("include", "Age", False)
All nodes used in SPSS Modeler can be located using the flow function
. At least one of findByType(TYPE, LABEL)
or
TYPE
must be specified.LABEL
Was the topic helpful?
0/1000