first autoplay NLA animation in first load (help)
04 May 2015 12:40
I need play on first load only play one animation nla.
And Cyclic mode because need when user press one object animation play work.
I tired this for autoplay nla action:
(My NLA is select and play)
function start_play_auto(){
var play_obj = m_scenes.get_object_by_name('boton');
m_anim.stop(play_obj);
m_anim.set_frame(play_obj, 0);
m_anim.apply_def(play_obj);
m_anim.play(play_obj);
console.log(play_obj);
}
function load_cb(data_id) {
m_app.enable_camera_controls();
m_mouse.enable_mouse_hover_outline();
start_play_auto();
}
But I do not get it to work…
any suggestions?, Thanks.
And Cyclic mode because need when user press one object animation play work.
I tired this for autoplay nla action:
(My NLA is select and play)
function start_play_auto(){
var play_obj = m_scenes.get_object_by_name('boton');
m_anim.stop(play_obj);
m_anim.set_frame(play_obj, 0);
m_anim.apply_def(play_obj);
m_anim.play(play_obj);
console.log(play_obj);
}
function load_cb(data_id) {
m_app.enable_camera_controls();
m_mouse.enable_mouse_hover_outline();
start_play_auto();
}
But I do not get it to work…
any suggestions?, Thanks.
05 May 2015 11:26
12 August 2015 07:49