Move / Scale / Bounding Box Center
All  1-3  4-9

Previous
Next
 From:  Frenchy Pilou (PILOU)
8844.4 In reply to 8844.3 
More tricky second level than my basic try! :)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery
  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
Next
 From:  TOM (SIRTOM)
8844.5 In reply to 8844.4 
Thank you both Pilou and 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

Previous
Next
 From:  surferdude
8844.6 In reply to 8844.3 
Hi Michael, is it possible to extend this command? I would like to use one shortcut instead of two. For example, If I click a hotkey it will trigger the bounding box center, the next click will make it a normal move/scale/ command. So you can choose between these commands while using only one shortcut.

EDITED: 1 Apr 2020 by SURFERDUDE

  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
Next
 From:  Michael Gibson
8844.7 In reply to 8844.6 
Hi surferdude,

re:
> For example, If I click a hotkey it will trigger the bounding box center, the next click will make it a
> normal move/scale/ command. So you can choose between these commands while using only one shortcut.

Yes, in v4 it's possible to set up a shortcut key that will do that. Here is what you would put for the command part of the shortcut keys:

script: /* Scale, switch between center and regular */ var didcenter = false; try { didcenter = moi.command.getOption( 'scale_center' ); } catch(e){} if ( didcenter ) { moi.command.execCommand( 'Scale' ); } else { moi.command.execCommand( 'Scale BoundingBoxCenter' ); } moi.command.setOption( 'scale_center', !didcenter );

script: /* Move, switch between center and regular */ var didcenter = false; try { didcenter = moi.command.getOption( 'move_center' ); } catch(e){} if ( didcenter ) { moi.command.execCommand( 'Move' ); } else { moi.command.execCommand( 'Move BoundingBoxCenter' ); } moi.command.setOption( 'move_center', !didcenter );

- 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

Previous
Next
 From:  surferdude
8844.8 In reply to 8844.7 
Amazing!

Thank you a lot! It will make my work way easier!

Patiently waiting for the final release of v4!
  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:  raytownmike (HOPPER)
8844.9 In reply to 8844.8 
Nice!
  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

 

 
 
Show messages: All  1-3  4-9