MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-7  8-27  28-47  48-67  68-87  88-107  108-127  …  368-372

From: Cemortan_Tudor
25 Mar 2018   [#48]
fun with moi

Image Attachments:
fun_with_moi.PNG 


From: mkdm
26 Mar 2018   [#49] In reply to [#48]
Very nice!!

Thanks.
From: Cemortan_Tudor
26 Mar 2018   [#50]
if smb have free time i have a request for scripting
perspective camera from image
From: Michael Gibson
26 Mar 2018   [#51] In reply to [#50]
Hi Cemortan_Tudor, that would probably be a pretty time consuming script to create, so it's probably not too likely to happen.

I'd recommend using already existing methods with other software, for example SketchUp:
https://help.sketchup.com/en/article/3000115

or Blender with BLAM:
https://blender.stackexchange.com/questions/33625/still-frame-camera-solve/33628

or here is a more manual method:
https://www.fxphd.com/tips/finding-the-cameras-position-tutorial/

or another method using Blender again:
http://www.chocofur.com/camera-matching-tutorial-in-blender.html

- Michael
From: Cemortan_Tudor
26 May 2020   [#52]
easy script, remade from hide curve, toggle shaded mode (working with reference images)
script:var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = true; for ( var i = 0; i < breps.length; ++i ) { var faces = breps.item(i).getFaces(); if ( i == 0 ) hide = !faces.item(0).hidden; faces.setProperty( 'hidden', hide ); }
From: Frenchy Pilou (PILOU)
26 May 2020   [#53] In reply to [#52]
In French ;)
script:/* Bascule Mode Filaire Ombré en Mode Image */var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = true; for ( var i = 0; i < breps.length; ++i ) { var faces = breps.item(i).getFaces(); if ( i == 0 ) hide = !faces.item(0).hidden; faces.setProperty( 'hidden', hide ); }

https://moiscript.weebly.com/filaire-ombreacute.html



PS : seems it's working in any mode ! (?)
From: Cemortan_Tudor
27 May 2020   [#54]
yes, i was searching on google, then on http://kyticka.webzdarma.cz/3d/moi/, havent found, made myself
thanks for new resource
From: bemfarmer
27 May 2020   [#55]
Add English documentation prefix?

script: /*!Toggle shaded mode */ var breps =

- Brian
From: Cemortan_Tudor
28 May 2020   [#56]
Clearing Ai exports with dynamic sketch - works perfectly - visual export bugs

Image Attachments:
Screenshot_15.png 


From: Michael Gibson
28 May 2020   [#57] In reply to [#56]
Hi Cemortan_Tudor, you might be able to reduce those by using a larger "Canvas megapixel resolution" value in the AI export options dialog. Maybe try doubling it and see if that helps. If you set it too high it can consume a lot of memory though.

- Michael
From: Cemortan_Tudor
29 May 2020   [#58]
amazing stuff ))
from 1gb ram up to 4gb, resolution 25 -> 100, almost no rework needed
From: Cemortan_Tudor
30 May 2020   [#59]
one more thing discovered, ai -> copy to clipboard - paste in moi works without any extra files, reversed doesn't work (

Image Attachments:
Screenshot_16.png 


From: coi (MARCO)
30 May 2020   [#60] In reply to [#59]
hi,
there is a script for that:

script: /*! Copy AI format to clipboard */ moi.geometryDatabase.copyToClipboardAI();
From: Cemortan_Tudor
30 May 2020   [#61] In reply to [#60]
thanks !!
From: Michael Gibson
30 May 2020   [#62] In reply to [#59]
The clipboard copy to PDF or AI needs to be triggered by a separate shortcut like that because it has options UI for it. When you do the regular copy to clipboard, MoI does not know at that time where you're trying to target and it would be weird to pop up the AI options dialog for every Ctrl+C copy.

- Michael
From: Cemortan_Tudor
4 Jun 2020   [#63]
shell, mb u'll need

Image Attachments:
shell.png 


From: Cemortan_Tudor
5 Jun 2020   [#64]
script:/* grid toggle */moi.drawingAids.gridSnap = !moi.drawingAids.gridSnap;
From: Cemortan_Tudor
5 Jun 2020   [#65]
i'm using trim -> trim points a lot
reworked the script so when i'm pressing second time t ('t' is my trim hotkey) fires event 'add trim point' - no second hotkey for that
earlier i was using -> script: /* Trigger Add trim points in Trim command */ moi.ui.fireUIEvent( 'addtrimpoints' );
idk how moi.command.registerCommandSpecificShortcutKey works (what registers ! only strings ?)

Attachments:
Trim.js


From: Cemortan_Tudor
5 Jun 2020   [#66]
network profiles

Image Attachments:
network.png 


From: Michael Gibson
5 Jun 2020   [#67] In reply to [#65]
Hi Cemortan_Tudor,

re:
> idk how moi.command.registerCommandSpecificShortcutKey works (what registers ! only strings ?)

You give a string description of the shortcut key, like 'Delete', or 'Ctrl+A'.

When that is called, then for the duration of that command it will override the handling of that shortcut key to generate a UI event that the command can process, rather than the default shortcut processing.

- Michael

Show messages:  1-7  8-27  28-47  48-67  68-87  88-107  108-127  …  368-372