MoI discussion forum
MoI discussion forum

Full Version: AutoRotate script final

Show messages:  1-8  9-28  29-35

From: Zooen
25 Aug   [#29] In reply to [#28]
Thanks Michael,
Well, when I put a // at the beginning of the line, I got an error message (maybe I didn't understand the instruction properly!). Then I thought of a problem with the left brace.
So here's what I did below: move left brace.

// config: norepeat

function DoAutoRotate()

// moi.ui.commandUI.Start();

{ var dlg = moi.ui.commandDialog;

while ( 1 )
{
if ( !dlg.waitForEvent() )
return false;

if ( dlg.event == 'quit' )
break;
}
}

DoAutoRotate();

It works!

This allows me, when recording an animation, to start at a specific (chosen) position.
Thanks again
From: Zooen
25 Aug   [#30] In reply to [#28]
Well, to illustrate my request, a short video.
It's very short, because in mp4 or Gif format, a longer video can't be sent to the forum.
In fact, I'm wondering what the maximum size is.

Please, I have no Copyright, but out of respect for the modest little creator that I am, do not use this animation video in any AI software or other to ask him to realize anything. Thank you

Oups! j'ai oublié de traduit en anglais.

Oops! I forgot to translate it into English.
In fact, as my memory fails me more and more, I was wondering how I had created the basic shape or if I had created it myself. I've just found the original August 16, 2021 file on an external disk. 4 years, well, I'm allowed to have forgotten!!!

Attachments:
MoI_Chorégraphonia.mp4


From: Michael Gibson
25 Aug   [#31] In reply to [#29]
Hi Zooen, I'm glad you got it working! I've attached the file with the edit in it that I was trying to describe.

- Michael

Attachments:
AutoRotate2.js


From: Phiro
25 Aug   [#32]
Hi,

My 2 cents.
If you want something like autoRotate to have a simple render, look at Koru software.
MoI is wonderfull and perhaps the best CAD for artistic model but it's not a render tool.
I think if you want an easy and good render with a rotation effect, Koru is a very good choice.
It can export your work in a html page with Webgl and easy add a script to rotate the camera.
If you let it work, the webpage will rotate the cam.
If you use your mouse to rotate and stop touch it, after seconds, it will re-rotate the cam.

And as a webpage, you can open it with any device, Computer, smartphone, tablet...

A quick sample here... Click_it
From: Zooen
26 Aug   [#33] In reply to [#32]
Hi Phiro,
Merci pour l'information.
Thanks for the information, I'll look into it. Well, it's not free.

I use ShareX 18.0.1.
ShareX is a free, open-source screen capture and screencast program for recording everything that happens on screen.
From: Zooen
26 Aug   [#34] In reply to [#31]
Thanks Michael,
Even though my tweaked AutoRotate2.js works, I've gone back to yours, certainly more in line with the code writing!
From: Frenchy Pilou (PILOU)
26 Aug   [#35]
Koru shown example has not a complete rotation! ;)
Spline 3D yes! ;) Don't use it for a while! :(
https://moiscript.weebly.com/spline.html

Show messages:  1-8  9-28  29-35