instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 02:31:29 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Control speed of scene via javascript  (Read 2492 times)
jasch
Newbie
*
Posts: 5


View Profile
« on: November 05, 2013, 01:56:05 pm »

Hello,

is there any way to get to the defaultTimerJob of a scene via Javascript? I see the node in the WebInterface and there i can control the speed of the scene, but i was not able to set the field value via name in the case of the engine nodes nor did i see any option to get writeable access to these options via the Javascript-API directly. Setting the parameters via get was possible when providing the id of the defaultTimerJob.

I could now scan the site with the list of named nodes to get the id of the defaultTimerJob and use this id. But this seems kind of unnecessary complex.

Is there another way?

Thanks in advance

Jan

Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #1 on: November 05, 2013, 03:38:31 pm »

Hi,
you can access nodes from the engine NameSpace via engine::<nodeName>. In your case "engine:: defaultTimerJob" should do the job...
Logged
jasch
Newbie
*
Posts: 5


View Profile
« Reply #2 on: November 30, 2013, 10:10:51 pm »

Thanks, that did the job.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines