godot_osc_demo/slider.gd

10 lines
275 B
GDScript

extends VSlider
func recv_osc(msg_info, values):
#print("Sender IP: %s" % msg_info["ip"])
#print("Sender Port: %d" % msg_info["port"])
#print("Address: %s" % msg_info["address"])
#print("Types: %s" % msg_info["types"])
set_value_no_signal(clampf(values[0], 0.0, 1.0))