Lots of unkown
 1-10  11-30  31-50  51-70  71-90  91-110  …  371-372

Previous
Next
 From:  Michael Gibson
8665.51 In reply to 8665.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
  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:  Cemortan_Tudor
8665.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 ); }
  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)
8665.53 In reply to 8665.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 ! (?)

EDITED: 26 May 2020 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
Next
 From:  Cemortan_Tudor
8665.54 
yes, i was searching on google, then on http://kyticka.webzdarma.cz/3d/moi/, havent found, made myself
thanks for new resource
  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
8665.55 
Add English documentation prefix?

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

- 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:  Cemortan_Tudor
8665.56 
Clearing Ai exports with dynamic sketch - works perfectly - visual export bugs
Image Attachments:
Size: 33.4 KB, Downloaded: 106 times, Dimensions: 739x521px
  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
8665.57 In reply to 8665.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
  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:  Cemortan_Tudor
8665.58 
amazing stuff ))
from 1gb ram up to 4gb, resolution 25 -> 100, almost no rework needed
  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:  Cemortan_Tudor
8665.59 
one more thing discovered, ai -> copy to clipboard - paste in moi works without any extra files, reversed doesn't work (
Image Attachments:
Size: 138.5 KB, Downloaded: 79 times, Dimensions: 921x742px
  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:  coi (MARCO)
8665.60 In reply to 8665.59 
hi,
there is a script for that:

script: /*! Copy AI format to clipboard */ moi.geometryDatabase.copyToClipboardAI();
  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:  Cemortan_Tudor
8665.61 In reply to 8665.60 
thanks !!
  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
8665.62 In reply to 8665.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
  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:  Cemortan_Tudor
8665.63 
shell, mb u'll need
Image Attachments:
Size: 534.8 KB, Downloaded: 147 times, Dimensions: 1476x2804px
  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:  Cemortan_Tudor
8665.64 
script:/* grid toggle */moi.drawingAids.gridSnap = !moi.drawingAids.gridSnap;
  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:  Cemortan_Tudor
8665.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 ?)

EDITED: 5 Jun 2020 by CEMORTAN_TUDOR

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:  Cemortan_Tudor
8665.66 
network profiles
Image Attachments:
Size: 356.3 KB, Downloaded: 91 times, Dimensions: 1670x898px
  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
8665.67 In reply to 8665.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
  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:  Cemortan_Tudor
8665.68 
added hotkeys for extrude tapered and tapered flip
T -> tapered
F -> tapered flip
why two hotkeys, t will remember last tapped action, f will switch actions
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:  Cemortan_Tudor
8665.69 
O hayo Michael !
I wanted to expand functionality of planarsrf & failed
from min 2 selected brep.edges make a line and combine together for a planarsrf

if (moi.geometryDatabase.getSelectedObjects().getEdges().numEdges > 1) is always 0
or
if (moi.geometryDatabase.getSelectedObjects().getpBreps().getEdges().numEdges > 1) is always 0

Selected edges dont have Id's ?
  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
8665.70 In reply to 8665.69 
Hi Cemortan_Tudor,

re:
> if (moi.geometryDatabase.getSelectedObjects().getEdges().numEdges > 1) is always 0

Which version of MoI are you using? Over here with v4 this is working ok:

moi.ui.alert( moi.geometryDatabase.getSelectedObjects().getEdges().numEdges );




re:
> if (moi.geometryDatabase.getSelectedObjects().getpBreps().getEdges().numEdges > 1) is always 0

You've got a typo in there getpBreps should be getBreps() .

And also getBreps() will return an object list, then getEdges() called on that will only gather edges
that were directly in the object list, it won't gather the edges that are sub objects of the breps. For
that you've got to call getEdges() on a brep object, not on an object list. Something like:

var breps = moi.geometryDatabase.getSelectedObjects().getBReps();
for ( var i = 0; i < 1; ++i )
{
    var brep = breps.item(i);
    var edges_of_brep = brep.getEdges();
    moi.ui.alert( edges_of_brep.numEdges );
}




re:
> Selected edges dont have Id's ?

In v3 objects don't get IDs assigned to them until they are added into the geometry database. So if you have created a brep as a "loose object" that is not in the geometry database then it won't have IDs yet. In v4 this is different and ids are assigned when an object is created.

var edges = moi.geometryDatabase.getSelectedObjects().getEdges();
var ids = '';
for ( var i = 0; i < edges.length; ++i )
{
    ar edge = edges.item(i);
    ids += edge.id + '\n';
}

moi.ui.alert( ids );




- 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
 

Reply to All Reply to All

 

 
Show messages:  1-10  11-30  31-50  51-70  71-90  91-110  111-130  …  371-372