MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-3  …  104-123  124-143  144-163  164-183  184-203  204-223  224-243  …  364-372

From: Cemortan_Tudor
9 Jul 2020   [#164]
rect3pts with center

Attachments:
RectCenter3pt.htm
RectCenter3pt.js


From: Michael Gibson
9 Jul 2020   [#165] In reply to [#163]
Hi Tudor,

> bool operations of standalone curves that have different frames but are parallel to each other
> (ex circle at 0 0 0 and another at 1 1 1) -> to apply a move to second group(for difference
> will be subtract objectgroup) & do the bool

Is this something that you're trying to script? Can you show an example of the input objects and the result you are trying to make?

- Michael
From: Cemortan_Tudor
9 Jul 2020   [#166]
scene browser - objects are named
there is a solution - to create laaaaarge plane - and second group of objects to drop a point on this plane(project), and apply a move
mb is another solution

Attachments:
bool_scene.3dm


From: Cemortan_Tudor
9 Jul 2020   [#167]
another script that i'm trying to work on is trim a segment or cut a segment from a curve
the problem that i'm conflicting is that i have todo a separate object - commit and later choose from sepFactory
I dont know what objects are created after commiting, or how can I set a variable to them ! sepFactory.commit().lenght = 0
what's happening after a commit ?
From: Michael Gibson
9 Jul 2020   [#168] In reply to [#166]
Hi Tudor,

> scene browser - objects are named
> there is a solution - to create laaaaarge plane - and second group of objects to drop a point on this
> plane(project), and apply a move mb is another solution

Ok, if you have a solution what do you need? Is there a question you have about this?

- Michael
From: Michael Gibson
9 Jul 2020   [#169] In reply to [#167]
Hi Tudor,

re:
> what's happening after a commit ?

A .commit() is expected to be the last thing that is called on a factory, it is a signal to MoI that the work being done for the factory with updating different inputs is all finished.

If you want to get the objects that will be generated, you can instead call .update() and then .getCreatedObjects(). Or it is also possible to call .calculate() which will generate the result and return it as an object list without adding it in to the geometry database like usually happens in regular commands with .update()/.commit()/.cancel() .

- Michael
From: Frenchy Pilou (PILOU)
9 Jul 2020   [#170]
All these Scripts (?) are they on a same place ? (Sites...)
From: Cemortan_Tudor
9 Jul 2020   [#171]
thanks ! found also older posts by u'r recommendations
Trim hotkeys
t - trim add point
s - trim single segment (~ if u click wrong object it will delete that object -> there are no restriction to object selection)

Attachments:
Trim.js


From: Cemortan_Tudor
9 Jul 2020   [#172] In reply to [#170]
single person trying to understand moi in depth - yes
mb later will open a git for scripts
don't like multiple theme option
From: Frenchy Pilou (PILOU)
9 Jul 2020   [#173] In reply to [#172]
Thanks for the infos!

Message 8665.174 was deleted


From: Cemortan_Tudor
10 Jul 2020   [#175]
i'm messing with bool operations difference operations to see all the states for curves
so ~ there's a glitch
on a shape like this with keep objects will delete 'baseobjects'

Attachments:
bool_tests1.3dm

Image Attachments:
Screenshot_21.png 


From: Michael Gibson
10 Jul 2020   [#176] In reply to [#175]
Hi Tudor, yes the curve booleans can get confused if you do a boolean between an open curve and a closed curve like that.

You can do an open curves as the base object and a closed curve as the cutter but a closed curve as the base object and an open curve as the cutter will tend to make some weird results. I would recommend to avoid using that combination.

- Michael

Message 8665.177 was deleted


From: Cemortan_Tudor
16 Jul 2020   [#178]
Hi Michael !

I have a dream ))
Editpoints manipulation in 3dSpace if not snapped-> dragging -> http://moi3d.com/forum/index.php?webtag=MOI&msg=8665.117
toogle option
1. accordingly to the 3d view drag should change grid orientation : xy,xz,yz based on pickedpoint drag start position (similar to http://moi3d.com/forum/index.php?webtag=MOI&msg=8665.141)
2. view frame moi.ui.getActiveViewport().targetFrame

I've tried move command - but it requires to many actions for manipulation (for each -> select, move, axis or frame, drag)
this way we won't be snapped to orto views

about
http://moi3d.com/forum/index.php?webtag=MOI&msg=8665.142 - only on init - we can cancel align and do new one if camera changes
From: Michael Gibson
16 Jul 2020   [#179] In reply to [#178]
Hi Tudor, sorry no there isn't a method set up to do what you wan there. Since MoI is designed as a type of CAD program, it has an overall focus on accuracy and not on mushing points around in random directions.

There are other programs that are focused on that type of object manipulation. If that type of operation is important for your work you would be better off using one of those programs that is designed for that type of task rather than MoI which is not designed for that type of work currently.

- Michael
From: Cemortan_Tudor
18 Jul 2020   [#180] In reply to [#179]
It's true that i'm trying to achieve common environment for modeling - hard surface - will be neat future for history sweep update (shape creation)

Here comes a question - I know disable update - will disable sweep's update(idk others which can update) but manual update on what it works ? -> enable history ?

pointpicker.bindFunc() & pointpicker.bindFuncPostUpdate() - differences, references, other wiki locations !

Also with last v4 version will be possible to achieve this future - https://github.com/heimlich1024/OD_CopyPasteExternal
copy/paste obj extension between softwares !
by moi.filesystem.getDirs() as all files are in %system%\Windows\Temp folder

//on git Author use version of Smirmov's import obj future that has ~ normalize and ~ move actions (need digging to understand what they are for, if u know the answer !) - as script -> It should copy/replace same object on same position in different softwares !
From: Michael Gibson
18 Jul 2020   [#181] In reply to [#180]
Hi Tudor,

re:
> Here comes a question - I know disable update - will disable sweep's update(idk others which can update) but
> manual update on what it works ? -> enable history ?

It can be enabled on the results from any command except the Array commands which do not emit history records on objects because it can increase file size on larger arrays by quite a bit. The main limitation to the history function though is that it needs to be able to find the input objects in the current geometry database for it to use them for a recalculation. If the original objects have been removed that will break history updates.


> pointpicker.bindFunc() & pointpicker.bindFuncPostUpdate() - differences, references, other wiki locations !

bindFunc() will make the pointpicker call to the given function before it updates factory inputs and the function can provide the current point value on the pointpicker that will then get pushed to the factory inputs. bindFuncPostUpdate() will make the pointpicker call to the given function after the update sequence has happened so it can look at the results of the update.


> Also with last v4 version will be possible to achieve this future - https://github.com/heimlich1024/OD_CopyPasteExternal
> copy/paste obj extension between softwares !
> by moi.filesystem.getDirs() as all files are in %system%\Windows\Temp folder

I think that system is already working with MoI v3 and v4.


> //on git Author use version of Smirmov's import obj future that has ~ normalize and ~ move actions
> (need digging to understand what they are for, if u know the answer !) - as script -> It should
> copy/replace same object on same position in different softwares !

I think that Max noticed that some programs make .obj files that happen to be at what is considered an unusually small or large scale in MoI, and so he implemented a method to rescale objects to a more normal size when they are read in which is enabled by default. But that is not good for keeping unit sizes the same and so there is an "exact" command line parameter that you can pass in to the script to turn that off:
http://moi3d.com/forum/index.php?webtag=MOI&msg=6674.453

- Michael
From: Cemortan_Tudor
18 Jul 2020   [#182]
move - expanded first actions - move + x/y/z/a initial conditions (earlier script respond after first pickedpoint)
s - bbox center

extrude - do backup as part is havelly changed from vanilla
p path
b both directions
c cap ends
d directional // changed - removed distance line and input distance (slightly buggy on surfaces if keypressed while moving mouse - I think it can't update in time and skips update factory)
f tapered/flip tapered
Numpad+ increase tapered angle by 15
Shift+Numpad+ increase tapered angle by 5
Numpad- decrease tapered angle by 15
Shift+Numpad- decrease tapered angle by 5
removed t as hotkey

boolean difference
for closed curves
initial and subtractive if both are on same parallel frame but different frame
move subtractive group to initial and do the boolean difference (made for side views where u see that u have 2 circle's but u cannot subtract cuz they have different frames)

Attachments:
BooleanDifference.js
Extrude.js
Move.js


From: Cemortan_Tudor
19 Jul 2020   [#183]
crv.evaluateCurvature - how can I access first and second pt of vector ? -> tried -> [], item(), getStartPt()

Show messages:  1-3  …  104-123  124-143  144-163  164-183  184-203  204-223  224-243  …  364-372