PDA

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


Gibbz
02-16-2009, 11:41 PM
$.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?

Gibbz
02-16-2009, 11:43 PM
i got it, just needed speech marks around myConstant :)

ZeBoxx2
02-16-2009, 11:59 PM
alternatively, use the name approach;
$.position.controller.getconstant #myConstant

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

CGTalk Moderation
02-16-2009, 11:59 PM
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.