MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / my_temp_var_python_condition

Function my_temp_var_python_condition

scripting/examples.py:104–108  ·  view source on GitHub ↗
(data, instance_id)

Source from the content-addressed store, hash-verified

102# The "instance_id" uniquely identifies each instance of this condition type
103# and needs to be passed to "advss_set_temp_var_value()"
104def my_temp_var_python_condition(data, instance_id):
105 value = random.uniform(0, 100)
106 advss_set_temp_var_value("random_int", int(value), instance_id)
107 advss_set_temp_var_value("some_other_value", value, instance_id)
108 return True
109
110
111###############################################################################

Callers

nothing calls this directly

Calls 1

advss_set_temp_var_valueFunction · 0.85

Tested by

no test coverage detected