Reset view?
All  1-7  8-10

Previous
Next
 From:  Michael Gibson
8025.8 In reply to 8025.6 
Hi Flowgun, by default the view reset will fit to selected objects and if you run it a second time it will fit to all objects regardless of selection.

But you can pass in an optional parameter to the resetAll() function to make it behave differently. The parameter can be one of:

'auto'  - Do automatic toggle between selected or all.
'selected'  - Only reset to selected objects.
'all'  - Only reset to all objects.
'default'  - Reset to default startup views, keeping reversed views (bottom/back/left).
'harddefault'  - Reset to startup views and get rid of reversed views (bottom view will become top).


So you can use it like this for example: moi.view.resetAll( 'selected' );

- 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

Message 8025.9 deleted 20 Mar 2022 by FLOWGUN

Message 8025.10 deleted 20 Mar 2022 by FLOWGUN
 

Reply to All Reply to All

 

 
 
Show messages: All  1-7  8-10