Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    Bounding box of an object
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<Florin>
Posted
Is there a way for viewpoint to automatically draw a selection box around an instance when a user clicks on it?

THX
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of JPoint
Posted Hide Post
hi florin
for your question there is a very simple way to solve it. use a mtsplane object and apply a texture of .swf file through the mtstimeelem type swfview. and make the hasalpha for that texture declaration to HasAlpha = "1" .Now in your interactor mouseenter and mouseexit call a javascript function as ment() and mext.
in the ment() function enable the plane object
by using clps ="0" property.
And in the meext() function disable the plane object by using clps="1".
Initially the plane object must be collapsed ="1" so that initaially the plane object is hide.

This is the very simplest way for bounding enable.
In order to enable this bounding box to all of the objects . You have to write all the objects mouseover interactor and pass the x y z parameter position of the particular object to the ment() and mext() functions .Then assign the same position to plane object.

This will work as you like.
if u have any more ideas other than this pls intimate or if you have any confusion still
send message.

regards,
JPoint
 
Posts: 23 | Location: India | Registered: April 17, 2004Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    Bounding box of an object