View Full Version : scripted controller, how to get constant?

02 February 2009, 12:41 AM
$.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?

02 February 2009, 12:43 AM
i got it, just needed speech marks around myConstant :)

02 February 2009, 12:59 AM
alternatively, use the name approach;
$.position.controller.getconstant #myConstant

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

CGTalk Moderation
02 February 2009, 12:59 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.