Notifications
Clear all

[Closed] scripted controller, how to get constant?

$.position.controller.getconstant looks like is usable, however when i try
$.position.controller.getconstant myConstant

nothing happens i get the errror
– Unknown property: “myConstant” in GetConstant()

does anyone know how to read the variable values out of a scripted controller?

2 Replies

i got it, just needed speech marks around myConstant

alternatively, use the name approach;
$.position.controller.getconstant #myConstant

quotation marks are easier when dealing with spaces, though
(spaces are evil)