Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    changing color

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
HI,
I want to add color at a time to the plane .My requirement is whenever click a button in HTML page color should apply. how to do plase explaine me Expecting your reply.
regards,
J Ravi
 
Posts: 5 | Registered: August 25, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hello,

This should do what you want:

When you click the HTML button, call this in javascript:

<form name="generic">
<input name="thehtmlbutton" type=button value="mybutton" onclick="vmp.SetProperty('MTSInstance.myPlaneObject','difc','0.24 1.0 0.83','mts_pnt3d')" />
</form>

SetProperty() is an accessible function of the MTS3Interface.js. You can find out about all the accessible MTS3Interface javascript functions on pages 161 and 162 of the Viewpoint Rich Media Authoring Guide available here.

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    changing color