Show messages:
1-17
18-37
38-57
58-77
78-97
98-117
118-137
…
358-372
From: Cemortan_Tudor
amazing stuff ))
from 1gb ram up to 4gb, resolution 25 -> 100, almost no rework needed
From: Cemortan_Tudor
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)
hi,
there is a script for that:
script: /*! Copy AI format to clipboard */ moi.geometryDatabase.copyToClipboardAI();
From: Cemortan_Tudor
thanks !!
From: Michael Gibson
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
shell, mb u'll need
Image Attachments:
shell.png
From: Cemortan_Tudor
script:/* grid toggle */moi.drawingAids.gridSnap = !moi.drawingAids.gridSnap;
From: Cemortan_Tudor
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
network profiles
Image Attachments:
network.png
From: Michael Gibson
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
From: Cemortan_Tudor
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:
Extrude.js
From: Cemortan_Tudor
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 ?
From: Michael Gibson
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
Image Attachments:
cemortan_edges1.jpg
cemortan_edges2.jpg
cemortan_edges3.jpg
From: Cemortan_Tudor
using script to preview export wireframe
if u wanna u can modify path and it will export at that location, first time to work will need to override that file(fbx folder doest exist by default app)
change 'NoUI' to true will export without options
script: /* export fbx preview*/ var fbx_path = moi.filesystem.getAppDataDir() + '\\fbx\\preview.fbx';moi.geometryDatabase.fileExport(fbx_path, 'NoUI=False');
From: Cemortan_Tudor
Thanks Michael
here's the script
PlanarSrf
* added functionality to join 2 or more selected edges
Attachments:
PlanarSrf.js
From: Michael Gibson
Hi Cemortan_Tudor, does the attached version do what you were wanting?
This one will only work with MoI v4, some scripting things are simplified in MoI v4 like it doesn't require object inputs to async factories to be added to the geometry database.
- Michael
Attachments:
PlanarSrf_test.js
From: Cemortan_Tudor
yes, thats what i've wanted
u've reworked after all )))
I haven't read v4 script changelog
one future that i wanna add is to deselect edges and add factory to selection since most likely will be a join or union after that,
found only SelectLastCommandCreated from
http://kyticka.webzdarma.cz/3d/moi/ and it works after end of the script
inside script with getCreatedObjects() will try to make planar from current selection -> error.
So it's good as it is !
thanks !
From: Cemortan_Tudor
mirror Y
selected objects will mirror only one direction on Y axis and will be renamed with mirrorY,
on next pushed button all mirror will be deleted and replaced with new one (getBoundingBox check)
Attachments:
_MirrorY.js
From: Cemortan_Tudor
addded 'R' hotkey for round corners
Rectangle
Rect3pts
RectCenter
I'd wish to combine all 3 together under one runtime fuction with option to change to another one, later mb will do
also wanna ask if is any rect3pts with a center point , mirror being the first point, on axis of second
Attachments:
GetRect.js
GetRect3pt.js
From: Michael Gibson
Hi Cemortan_Tudor,
re:
> <...> any rect3pts with a center point , mirror being the first point, on axis of second
Sorry I'm not understanding this part, can you make a sketch to illustrate it?
- Michael
Show messages:
1-17
18-37
38-57
58-77
78-97
98-117
118-137
…
358-372