Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    How can I use this Action code with HTML button?

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<Takatsuji>
Posted
Could you help me please? I want to make Reset Camera button with this Action Code.

<MTSInteractor>
<Target Name="MTSInstance.resetcamera" />
<MTSHandle Target="MTSScene::rstc" Value="0" Action="MTSAssignProperty" Event="MouseLeftClick" />
</MTSInteractor>

In HTML page (It's not work)
<input name="reset" type="button" value="Reset_Camera" OnClick ID="0" Action="MTSAssignProperty" Target="MTSScene::rstc"/>

Please show me the right code.

Thank you very much
 
Reply With QuoteEdit or Delete MessageReport This Post
<barnaby>
Posted
Takatsuji,

you need to use the MTS3Interface.js to communicate between you html page and the vet scene. Specifically you will want to use the SetProperty() function. The code for your button should be something like this:

<input type="button" value="click me" border="0" onclick="vmp.SetProperty('MTSScene','rstc','0','mts_int')">
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    How can I use this Action code with HTML button?