V4 beta Nov-18-2017 available now
 1  …  42-61  62-81  82-101  102-121  122-137

Previous
Next
 From:  Max Smirnov (SMIRNOV)
8682.82 In reply to 8682.76 
Hi Michael

I tested my Cloth script today.
It hangs on infinite loop at line 75:
code:
while ( moi.ui.commandUI.runAnimation ) { moi.ui.commandUI.calcFrame(); }

Interface is inactive, viewports not updating.
Should I add something like moi.ui.update() inside the loop, or rewrite this script using setInterval function?

UPD:
I rewrote the script using setInterval function. Now it runs about 50-60% faster than old one with MoI v3.


>>So you mean you want to make a tag that loads a file from the appdata directory?
Yes.
In fact I would like to read files from any user directory, but I think its impossible in MacOS.

>>How about if I add support in the moi:// protocol handler so you could do moi://appdata/Objects/Filename.png as the URL, similar to how moi://ui and moi://commands URLs can be used currently.

moi://appdata is a good idea
Thank you!

EDITED: 23 Nov 2017 by SMIRNOV

  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:  val2
8682.83 
I think I might have found a bug. If I make a box (or any solid) and then scale it then go to undo It solid disappears instead of returning to it's initial state.
thanks,

Val
  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)
8682.84 
<< 8682.83
... a bug. If I make a box (or any solid) and then scale it then go to undo It solid disappears instead of returning to it's initial state.

The same for me! :) (Windows 10)
  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:  mkdm
8682.85 In reply to 8682.83 
Hi val2.

No...for me all works fine on Windows 10.

But, I'm not sure I understand correctly your use-case.

Could you please specify more in depth the steps you did ?

Thanks.

- Marco (mkdm)
  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:  danperk (SBEECH)
8682.86 
>>I think I might have found a bug. If I make a box (or any solid) and then scale it then go to undo It solid disappears instead of returning to it's initial state.
thanks,

Confirmed here as well.

Windows 10 version 1709 (KB4041994).

EDITED: 23 Nov 2017 by SBEECH

Image Attachments:
Size: 859.7 KB, Downloaded: 49 times, Dimensions: 1174x787px
  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:  eric (ERICCLOUGH)
8682.87 In reply to 8682.86 
I just tried that sequence once and it did not have a disappearing problem.
eric
  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:  Finema
8682.88 In reply to 8682.83 
Hi
Same for me on Mac
I can also reproduce this bug with Rotation
  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:  BurrMan
8682.89 In reply to 8682.88 
I can reproduce it.

It kicks in when using the picker to do it. If you just type values for the scale or rotate, it operates correctly.

If you use pick points, then the disappear appears.
  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:  Metin Seven (METINSEVEN)
8682.90 In reply to 8682.81 
Hi Michael,

I can confirm what Marc mentioned — the interactivity of Extrude in the viewport lags a little compared to V3 for MacOS.

Regards,

Metin

———————

visualization • illustration • animation • 3D (print) design — https://metinseven.com
  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
8682.91 In reply to 8682.80 
Hi Max,

re: moi.command.getOption() getting from moi.ini not working on Mac - I put in your LightingOptions="" value but still couldn't get the failure, could you please post or e-mail me (moi@moi3d.com) your entire moi.ini file so I can be sure I've got the same as you for testing it?

Thanks, - 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:  Michael Gibson
8682.92 In reply to 8682.82 
Hi Max,

re:
> I tested my Cloth script today.
> It hangs on infinite loop at line 75:
> code:
>
> while ( moi.ui.commandUI.runAnimation ) { moi.ui.commandUI.calcFrame(); }
>
>
> Interface is inactive, viewports not updating.
> Should I add something like moi.ui.update() inside the loop, or rewrite this script using setInterval function?

Yeah this is because of the change in threading model - previously the .js code would run in a separate moi_commandprocessor process and use interprocess communication when your script called any property or method on a MoI object. This has some overhead but protected against the script consuming a lot of CPU or running an infinite loop. The command could be torn down without any cooperation from the script itself. But the interprocess communication overhead was pretty costly for performance, it's why code would run faster if you moved it over into the .htm file since code there ran inside the main process and on the main thread so no interprocess communication needed. For v4 the .js code runs on the main thread now so it won't be necessary anymore to move it over into the .htm file for added speed but the downside is that the script is much more in full control of MoI and if it spins an infinite loop that will lock up MoI now.

So yes in v4 for something with animation setInterval would be the way to go, I should probably add one into MoI's own object model so you don't have to get it from the web browser environment but that will work for right now.

In order to avoid locking up the whole program the script will need to have an event loop where it calls waitForEvent, just spinning an infinite loop with no event loop like the Cloth script was doing previously isn't going to be supported anymore. The plus side of this is you don't need to move code over into the .htm file to gain performance anymore.

Hope that makes sense for what you saw here.


> In fact I would like to read files from any user directory, but I think its impossible in MacOS.

Yes, I guess not unless the process has elevated superuser privileges.


> moi://appdata is a good idea

I'll add that in for the next beta. Maybe it would be convenient if I also made some of the filesystem functions be able to optionally take moi:// URLs for paths or filenames too so you could do something like if ( moi.filesystem.dirExists( 'moi://appdata/Objects' ) ) { } , would that be of any use? That way you might not need to glue together pieces of paths quite as much.


Another thing that I think I forgot to mention is that you should now be able to index directly off an object list similar to how JS arrays work like should be able to do curves[2] now instead of needing curves.item(2) .


Thanks, - 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:  Michael Gibson
8682.93 In reply to 8682.83 
Hi Val,

re:
> I think I might have found a bug. If I make a box (or any solid) and then scale it then go
> to undo It solid disappears instead of returning to it's initial state.

You've definitely found a bug, thank you for reporting it! Looks like something going wrong with undo and Transform commands that show the original object in wireframe at some point during the command.

Tomorrow I will dig into it in more detail.

Thanks, - 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:  Max Smirnov (SMIRNOV)
8682.94 In reply to 8682.91 
Hi Michael

>>I put in your LightingOptions="" value but still couldn't get the failure
Sorry, it's my mistake. I accidentally put this option to View section instead of Commands.
I don't know why, but I thought that getOption function can read any option from moi.ini
  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
8682.95 In reply to 8682.94 
Hi Max, re: getOption - no problem I'm glad it's working ok now.

- 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:  Michael Gibson
8682.96 In reply to 8682.50 
Hi Marco, so it looks like I will be able to tune up the shortcut keys for V4 to avoid that Shift key problem. So the next v4 beta should generate Shift+1 instead of Shift+! and shouldn't cause trouble with V3 anymore.

Thanks for reporting it! - 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:  bemfarmer
8682.97 
The antiprism script does not show the build list in MoI4betaNov18. (It works in MoI3.)
The problem is a missing ">" after td in the .htm file.
- Brian
  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:  bemfarmer
8682.98 
Another minor difference, where the programmer made a minor error:-)
For _Braid scripts, in particular _Braid04.htm,
class="unsignedintegerinput" default="3.0" yields an input window value of "0" in MoI4BetaNov18,
versus MoI3, shows up as a "3".
(Obviously 3.0 is not an integer, default="3" yields 3 in MoI4 beta.)
- Brian
  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:  bemfarmer
8682.99 
The script _CoilRectangular.js, for the first Update line, contains
ui.RightHandCheckkbox.value );
NOTE the extra "k", which is an error.
This spelling error runs in MoI3, but not in MoI4.
- Brian
  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:  Unknown user
8682.100 
Hi Michael.
Can't insert images. The program prints a message and exits. In v3 everything is fine.
Files attached.
If you need something, let me know.
  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:  mkdm
8682.101 In reply to 8682.96 
Ok. Thanks a lot Michael!

We'll catch up.

- Marco (mkdm)
  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:  1  …  22-41  42-61  62-81  82-101  102-121  122-137