Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    about use javascript

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi Admin,

I can use javascript to set an opacity value to an object and get the opac setting from the VET scene.(codes are shown below)

My question is I want to type a vale for the opac setting, then press the button to make a change.

How can I modify my codes?

Thanks!

===============================

function setOpacity()
{
vmp.SetProperty'MTSInstance.R_lung', 'opac',0.9, 'mts_real');
}

function getOpacity()
{
var gop = vmp.GetProperty('MTSInstance.R_lung', 'opac', 'mts_real');
alert('Opacity = ' + gop + '\nType = \'mts_int\'');
}
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I have figured it outSmile
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Ok. I'm looking over your older posts too. Most of them can be answered in the documentation. I will look at them and point you to documentation that can help.

Regards
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks!!!
 
Posts: 181 | 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  General Topics    about use javascript