V4 beta Nov-18-2017 available now
 1-8  …  49-68  69-88  89-108  109-128  129-137

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

Previous
Next
 From:  Finema
8682.102 In reply to 8682.100 
Hi Vladimir,
I can't reproduce it on Mac. it's work fine.
  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.103 In reply to 8682.100 
@ Vladimir
You have an easy version of this headache!
It's not fair to give solution! :)

Here mine! :)

  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.104 In reply to 8682.100 
Hi Vladimir, thanks for reporting this bug and posting the crash report and image files, that helps a lot for tracking down the bug!

It looks like the crash has to do with MoI v4 not handling lower color depth images properly. I should be able to fix it but for the moment you can get these images to work ok in the current v4 beta by converting them to 24-bit images, currently they are 8-bit images. I've attached converted versions here that you should be able to use until the next beta release. Be careful to not download the thumbnail image from the attachment, you need to use something like "Save link as..." if you right-click on the thumbnail, if you just use "Save image as" it will probably download the small thumbnail instead of the full size image.

Thanks, - Michael
Image Attachments:
Size: 75.3 KB, Downloaded: 37 times, Dimensions: 1000x680px
Size: 110.8 KB, Downloaded: 34 times, Dimensions: 690x1000px
  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.105 In reply to 8682.102 
Hi Finema.
Only these files result in an error. Maybe the files are bad. Crash has created a report that can be useful for Michael. Thanks for checking.
  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.106 In reply to 8682.105 
Hi Vladimir, the images are not bad but they are a little unusual because they're stored at a lower color depth. It's that low color depth that MoI v4 isn't handling properly yet. I attached some replacement images above which should work ok until the next beta. The crash report is very useful, thank you for posting it and the images.

- 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:  Unknown user
8682.107 In reply to 8682.104 
Thank you Michael for the detailed answer, help and your wonderful program.
  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.108 
The SpurGearProfile script is faulty.
- B
I have nearly the same code in LogSpiral script, which works fine.

SpurGear may have a misplaced
code:
 </div> 
near the end of the .htm file?

EDITED: 25 Nov 2017 by BEMFARMER

  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-8  …  29-48  49-68  69-88  89-108  109-128  129-137