Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  VETScript    VET Script and CameraManipulator
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
rik
Member
Posted
Hi,

some questions

1)How to change and manage the property of CameraManipulator with vet script


I tried this ( inside an event handler function) but don't work

CameraManipulator.deltaPanY = MTSEvent._dy_;



2) I tried to moltiply a Point3D with a Matrix
like this:

var pt = new Point3d( 1,2,3);
var m = new Matrix();

newPt = pt * m;

but it don't work ; the x,y,z result is 0

any idea?

thanks in advance
 
Posts: 34 | Registered: March 17, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hello,

Could you show me the more complete code examples that you used? This could help me in determining your problem.

Thanks
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
rik
Member
Posted Hide Post
thanks for the response
I solved the previous question with the camera


but this .... maybe is a bug

I tried tu use VetScript and the Objects: Point3d and Matrix.

I've a cube scaled in the scene and I would like to multiply a point for his scale.

if I use this:

var pt = new Point3d( 1,2,3);
pt *= myCube.Matrix.Scale;
alert( pt ); // strange result ( I think is a bug )


I need to do that for obtain a correct result
var pt = new Point3d( 1,2,3);
pt.x *= myCube1.Matrix.Scale.x;
pt.y *= myCube1.Matrix.Scale.y;
pt.z *= myCube1.Matrix.Scale.z;
alert( pt ); // // correct result


I'm wrong?



I think that VETScript is very interesantly, why not create a forum category?
 
Posts: 34 | Registered: March 17, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  VETScript    VET Script and CameraManipulator