MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-4  …  205-224  225-244  245-264  265-284  285-304  305-324  325-344  …  365-372

From: Michael Gibson
30 Nov 2020   [#265] In reply to [#264]
Hi Tudor,

re:
> Michael can u make last message as first one ? so It should be ~ pinned

Sorry I'm not sure how to do that. I can put a link to the first one in the wiki resources page though, would that help?

Thanks, - Michael
From: Cemortan_Tudor
30 Nov 2020   [#266]
I'll make a new topic just for scripts, here will be questions !

Message 8665.267 was deleted


From: Cemortan_Tudor
30 Nov 2020   [#268]
ohayo
wanna ask about rotation - wanna do a to bounding box option on pressing hotkey
first testing on curves -> there's an option in v4 -> crv.planarFrame
tested - but it's shifts from bounding box -> gives planar frame but in another location
my questions ->
1. knowing 2 coordonates is it possible to make a frame ? accordigly to http://moi.maxsm.net/ it needs 3 (as it is from bbox to frame)
2. if upper is true wich will be (z) knowing x & y, next hotkey for flipping axis ()
3. if they are other scrips for rotation ?

shortly what I desire (unify rotation with some extra)
r - rotate
rr - rotate + bbox (planar frame 2d)
rrw(rrs) - rotate bbox + increase/decrease by amount (2d)
rrf - rotate from bbox + flip axis (x/y/z)
rrfw(rrfs) - rotate increase/decrease by amount (3d)
rc - rotate copy
rrc - rotate + bbox + copy
ra - array
rra - array from bbox
From: Michael Gibson
30 Nov 2020   [#269] In reply to [#268]
Hi Tudor,

> 1. knowing 2 coordonates is it possible to make a frame ? accordigly to http://moi.maxsm.net/ it
> needs 3 (as it is from bbox to frame)

Well 2 points does not identify a unique frame, the 2 points can form a z axis direction for the frame but there is nothing that locks down the x/y axis directions to a single answer. Depending on what you need it can be possible to do something like the AutoCAD arbitrary axis algorithm (link) where you take a fixed direction like the world z axis and use cross product of that and the z axis to produce an x axis.

If you want the 2 points to be an axis to rotate around, you could try the RotateAxis command or factory, that takes 2 points instead of a frame and then a rotation angle and the rotation will be around the direction vector between those 2 points.


> 2. if upper is true wich will be (z) knowing x & y, next hotkey for flipping axis ()

Sorry I don't understand this one.


> 3. if they are other scrips for rotation ?

ScriptArray:
http://moi3d.com/forum/index.php?webtag=MOI&msg=5595.18

RotateArray:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9710.5

RotateAndExtrudeFace:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8126.34

- Michael
From: Cemortan_Tudor
14 Mar 2021   [#270]
any plans for opensubd ?
an example https://youtu.be/gzyO8S5FLUU?t=181
From: Michael Gibson
14 Mar 2021   [#271] In reply to [#270]
Hi Tudor, yes I do plan on supporting OpenSubdiv style edge weighting imported through FBX format.

- Michael
From: Cemortan_Tudor
2 May 2021   [#272]
Ohayo !
wanna ask about techincal aspects hiding behind cad modeling
what's the reason to have always a solid shape ? why can't be done a bool operation of a plane and a surface knowing the plane normals ?
From: Frenchy Pilou (PILOU)
2 May 2021   [#273] In reply to [#272]
I believe it's essentially for Print 3D : you must have a thickness different than "0"
so a solid and not a simple plane surface who can't exist in the reality! ;)

And some practical for know how cost some volumes of materials for building or what is the density of something! ;)

But in Moi you can make Boolean operations with plane, surface with thickness = "0" !
From: Michael Gibson
2 May 2021   [#274] In reply to [#272]
HI Tudor,

re:
> why can't be done a bool operation of a plane and a surface knowing the plane normals ?

That's because MoI is designed to try and not behave differently depending on which direction an open surface happens to have as the "positive" normal direction.

The booleans are based on working with solids. If you are working on all surfaces you should use the Trim command instead of booleans usually.

- Michael
From: Cemortan_Tudor
8 May 2021   [#275]
ohayo
dragging points from a curve doesn't snaps to points of the same curve
From: Michael Gibson
8 May 2021   [#276] In reply to [#275]
Hi Tudor,

> dragging points from a curve doesn't snaps to points of the same curve

Yes, that's intentional to avoid having consecutive points get stacked up on top of each other too easily, such stacking degrades some of the mathematical properties of the curve and can cause problems.

- Michael
From: Cemortan_Tudor
12 May 2021   [#277]
ohayo !
have a rectangle, wanna draw a small chamfer - at a good zoomout.
Q: It impossible draw without disabling snapping ? i'm asking about an option for snap distance !
From: Cemortan_Tudor
12 May 2021   [#278]
Trim
t - trim add point
s - trim single segment ( can crash if not selected from object that was separated, idk how to fix)
added
c - join curves after deleting unwanted segments

Attachments:
Trim.rar


From: Cemortan_Tudor
12 May 2021   [#279]
fixed UnionJoin script
earlier opened surfaces where duplicating

Attachments:
UnionJoin.rar


From: Frenchy Pilou (PILOU)
12 May 2021   [#280] In reply to [#279]
Have you somewhere a repository of all your cool things ?
From: Michael Gibson
12 May 2021   [#281] In reply to [#277]
Hi Tudor,

re:
> ohayo !
> have a rectangle, wanna draw a small chamfer - at a good zoomout.
> Q: It impossible draw without disabling snapping ? i'm asking about an option for snap distance !

In general it's difficult to work on something where you're zoomed out so that it is too small on screen. It's good to zoom in in such situations so you have some room on screen to work with.

There is a setting though for how far your mouse cursor needs to be from a snap point for the snap to engage, that's under Options > Snaps > Object snap options > "Snap radius".

- Michael
From: Cemortan_Tudor
17 May 2021   [#282]
i might forgot, but this should work after copy/paste with coordinate frame
moi.ui.alert(moi.ui.getLastOrientationPickerFrame().origin.x)
From: Cemortan_Tudor
22 May 2021   [#283]
1. construction lines + align on surface + rect center
drag construction lines & place the first point, second point I think should be autoaligned to surface

2. pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed') ) I dont see text toolbox- is any trick behind

Image Attachments:
align_01.png 


From: Michael Gibson
22 May 2021   [#284] In reply to [#283]
Hi Tudor, re: #2:

> 2. pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed') ) I dont see text toolbox- is any trick behind

When you call moi.ui.getText( 'textid' ); that looks up text in the current language's string table for the text of the given id value.

There is no id value for "Closed" so your call there is going to return an empty string.

To fix it you could just pass some text directly instead of calling moi.ui.getText(), or use a valid textid like 'Closed snap'.

- Michael

Show messages:  1-4  …  205-224  225-244  245-264  265-284  285-304  305-324  325-344  …  365-372