Script a walk function ?

Next
 From:  Peex
1975.1 
Hi all,

Is it possible to write a script to navigate inside objets (walk fct) and change the fov (wihtout using the zoom) ?

Something like :
script:moi.ui.mainWindow.viewpanel.getViewport('3D').move( 'forward', 8.0 );
script:moi.ui.mainWindow.viewpanel.getViewport('3D').move( 'left', 8.0 );
...

Thx
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
1975.2 In reply to 1975.1 
Hi Peex - for the first one use the pan() method, like:

moi.ui.mainWindow.viewpanel.getViewport('3D').pan(0,0,8);

It takes 3 values, the first one for a right-left distance, the second one for an up-down distance, and the third one for a forwards-backwards distance.

Use a negative value to go in the opposite direction.

There currently is not any way to adjust the fov, I've been meaning to add that, I'll see if I can add that in.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All