Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    Dynamic Interactor

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hi I am trying to add an interactor to the scene to catch when the mts has finished loading:

str_mts_handle = MTSMarkup('MTSHandle', '', 'Event', 'MTSLoadDone:animation_name', 'Action', 'MTSJavaScript', 'Func', 'test();');
str_mts_interactor = MTSMarkup('MTSInteractor', str_mts_handle, 'Name', 'object_load_interactor');
vmp.Execute(str_mts_interactor);
vmp.Render();

after render I execute:

alert(plugin.GetProperty('MTSInteractor.object_load_interactor', 'name', 'mts_str'));

but it does not exists in the scene. Why?

Also, is there a way to change the "Event" of a handle using something like:

vmp.SetProperty('MTSInteractor.object_load_interactor', 'evnt', 'MTSLoadDone:another_animation_name', 'mts_str');

Thanks
 
Posts: 3 | Registered: March 30, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of viewpoint d-d
Posted Hide Post
Your alert is using plugin.GetProperty and it should be vmp.GetProperty
 
Posts: 793 | Location: Viewpoint, New York, New York | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    Dynamic Interactor