A little script

Next
 From:  Paul (AIRGLASS)
989.1 
Here's another small script, this one more of an "entertainment" type script.
All it does is rotate the model in the 3D viewport.
To set it up:
copy AutoRotate.js and AutoRotate.htm into the Moi/commands directory.
Then open MoI, go to the Options dialog, Shortcut keys and add entries for:
R AutoRotate
Ctrl+R AutoRotate Right
Alt+R AutoRotate Up
Shift+R AutoRotate Down
The command parameters available are Left,Right,Up,and Down.

The default direction of rotation is left, but can be changed in the
AutoRotate.js file by changing the variable "direction".

The default rotation angle is 0.25, but can be changed by setting
the "rotation_angle" variable.
A smaller angle = slower rotation, larger angle = faster.

Paul
Attachments:

  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
989.2 In reply to 989.1 
Cool Paul, looks like you are getting the hang of making scripts!

- 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:  Paul (AIRGLASS)
989.3 In reply to 989.2 
I don't know if I'm getting the hang of it, but I am having some fun with it! :)

Paul
  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
989.4 In reply to 989.3 
Well, you figured out how to put together a UI part along with the script part...

That's one of the nice things about scripting in MoI - scripting is an integral part of how all MoI commands work, it's not like something bolted on as an afterthought. By that I mean that when you make a custom command script you can make it integrate into MoI's UI in that upper-right zone and use all the same controls that any other MoI command uses. It's not a second class citizen from that aspect.

- 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:  3dvisuals dude (ODWYERVISUALS)
989.5 In reply to 989.1 
Thank you Paul!

This is a really nice feature that I have often used in Wings3D but somehow never considered for use in MOI 3D, now that you have made this possible though and I see how flexible it is I think I'll be using it every day from now on!

Well done!

- 3dvisuals dude
  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:  Frenchy Pilou (PILOU)
989.6 
It's like a video game :)
Just add the same for zoom and translation and you will have a terrific thing for see the models :)

So if I well understand all the Moi command'sprog can be modify and customized by the user?
That is a very powefull hidden part !!!
---
Pilou
Is beautiful that please without concept!
My Gallery

EDITED: 6 Oct 2007 by PILOU

  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:  Paul (AIRGLASS)
989.7 In reply to 989.4 
Yes, that is a pretty powerful part of MoI ( scripting + gui ). The combination really extends the possibilities of plain scripting, and it's a not readily apparent feature. It should be a strong selling point for MoI --
One thing that might be a good idea for sometime in the future, would be to put together a listing of all the methods and properties available for the gui and factories, maybe sometime after V1 or 2 is out? Anyway, there's alot that can be done with this, hidden beneath the surface!

Paul
  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