MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-15  16-35  36-55  56-75  76-95  …  356-372

From: Michael Gibson
26 Nov 2017   [#16] In reply to [#14]
Hi ganim3d,

> can i detect point position of betweens of a curve ?
> ex:
> 3 points curve, detect middle one(second) pt.x, pt.y. pt.z; (control point)
> 5 pt curve - 2,3 & 4'th pt pos
>
> found only getEndPt, getStartpt

Sorry no right now the control point structure of curves aren't exposed to scripts, just the start and end points. I want to add that in for v4 though.


> the idea was to combine under a group to keep always u'r preview clean

You can assign object names or styles to face or edge sub-objects in MoI. When you give them a name an entry will show up for them in the Objects section of the scene browser so you can then toggle the visibility there.

- Michael
From: Michael Gibson
26 Nov 2017   [#17] In reply to [#15]
There are also some related edge/face hide or show scripts here:
http://kyticka.webzdarma.cz/3d/moi/#ShadedDisplayMode

- Michael
From: ganim3d
30 Nov 2017   [#18]
i like the idea from 3d coat, one click cutoff https://youtu.be/gp1TPRdeYnk?t=4m6s &
i've made a script that's focusing on cutting from 3d view

Attachments:
_PolyCut.js


From: Frenchy Pilou (PILOU)
1 Dec 2017   [#19] In reply to [#18]
Genious!

From: Cemortan_Tudor
1 Dec 2017   [#20]
i'm teaching from passed written scripts, couldn't find any info about
calculateCurveOrientation(ObjectList - curveList) return LIST
From: Michael Gibson
1 Dec 2017   [#21] In reply to [#20]
Hi Cemortan, some commands like Loft keep track of whether the curves used for building the surface needed to be flipped or have their "seam" start/end point (for closed curves) to be modified from the curve's own natural direction and seam point in order to avoid making a twisted surface. This information is stored in a factory input so that if the curves are edited and a history recalculation is done it will use the same orientations and seam points from the original loft (which may be customized by the user by clicking on a closed curve or dragging a point) rather than trying to make new ones.

Usually this is done automatically by the loft factory but the function you are asking about will build the orientation list manually, the list will have one CurveOrientation object per curve passed in, the curve orientation object (IMoiCurveOrientation in the moi.idl file) has "flipped" and "seam" properties on it.

- Michael
From: Cemortan_Tudor
9 Dec 2017   [#22]
I've made a script that extends tangecy by 2 units (for those who are using pipe, to extend current line by some extra units)
I'm bad at moi html and a binding ui will be later updated !

Attachments:
_extendTangency.js


From: Cemortan_Tudor
9 Dec 2017   [#23]
another script, same as in zbrush
quick snap 3d view to side/top/bottom other angles, if co-working with Iso view - perfect tool for 4 cutting
i'd wish this script in main moi!

there's a glitch .. while i was testing it so often, setting up upDownAngle, leftRightAngle, tiltAngle i still can see 1 extra frame of script execution... here Michael if will have time could help

Attachments:
_viewSideSnap.js


From: Michael Gibson
9 Dec 2017   [#24] In reply to [#23]
Hi Cemortan, I think there's a bug somewhere in setting tilt angles where you may need to set it twice in a row to get it to the full position, you might try setting it twice in your script and see if that helps for now.

- Michael
From: Cemortan_Tudor
17 Dec 2017   [#25] In reply to [#24]
nope, didn't work
as much i don't feel that my computer is slow & it's not handling operations ! as far as i notice JS is doing on the fly, can't control timer or delay of execution.
not too important afterwall
From: Cemortan_Tudor
17 Dec 2017   [#26]
Michael Hi !
It was mentioned before about loop, why not to grab from SpaceClaim the loop
alla(https://youtu.be/-oJ5Xypordo?t=1m47s)
if 1 edge is selected {
check if it's line/curve type ! check for closest surfaces
__if line
_____pick a point from edge of adjustment surface, make a frame from it with first 2 points, check the surface points if are alligned to the frame -> make selection
__if curves
_____can be 1'st, end point and any arbitrary from curve point -> frame & again checks -> make selection
}
// bassicly we are are checking if adjustment surfaces are flat, if not break )) manual selection!
if 2 edges are selected - run the scrit that u've done !

They are Limitations JS and this can be done only in CORE(i'll write about those later)
thanks !
From: Cemortan_Tudor
17 Dec 2017   [#27]
I consider them as BUGS !
1. do the same in moi
https://youtu.be/-QDjJ67b3kA?t=2m35s
2. can make a video if it's needed
draw a rectangle, show points ON
click on a curve and start dragging
my intention is to change the hight/skew of rectangle, instead i obtain weird solutions :)
From: Michael Gibson
17 Dec 2017   [#28] In reply to [#27]
Hi Cemortan, if you have points turned on and you drag on the main curve when it is not selected, it will use a drag mode used for adjusting control points to make the curve move through the point you are dragging, like this:



That method adjusts several control points in one action.

If you want to move the entire curve instead of adjusting control points while still having points on, you can do that by selecting the entire curve before dragging it, like this:



- Michael
From: mkdm
17 Dec 2017   [#29] In reply to [#28]
Hello Michael!

@You "...if you have points turned on and you drag on the main curve when it is not selected, it will use a drag mode used for adjusting control points to make the curve move through the point you are dragging"

Thanks a lot for the tip. Very useful.

I didn't know this behaviour!

Ciao!
From: r2d3
18 Dec 2017   [#30] In reply to [#29]
Indeed... Moi is a never ending box of surprises...

BTW Marco, whats the meaning of this nice wine's name? Or are you also in the wine business? ;-)


Image Attachments:
moi-wine.jpg 


From: mkdm
18 Dec 2017   [#31] In reply to [#30]
Hello Ralf!

LOL :)


Well..."Primitivo di Manduria" is a famous Italian DOP wine from the region "Puglia",
and "Moi", its name, means "Now", "Right now", "immediately".


https://en.wikipedia.org/wiki/Manduria#Primitivo_di_Manduria

http://www.cornalidivino.it/en/112/167/shop/varvaglione-moi-primitivo-di-manduria-dop


Ciao!

Marco (mkdm)
From: Cemortan_Tudor
29 Dec 2017   [#32]
moi.ild converted to Javascript for intellisense/dictionary
most of description was token from http://moi.maxsm.net/api/
VsCode
Sublime

upcoming geometryFactory

Attachments:
moi.js

Image Attachments:
moiJS_Sublime.png  moiJS_VSCode.png 


From: mkdm
29 Dec 2017   [#33] In reply to [#32]
WOW!!!

Amazing job Cemortan_Tudor !!

Very interesting.
Could be a great foundation to speed up script coding.

Keep on!

Ciao.
From: Cemortan_Tudor
3 Jan 2018   [#34]
geometryFactory for intellisense (vsCode)

upcoming HotKeys_Setup

Attachments:
geometry_factory.js

Image Attachments:
geomFactory.png 


From: bemfarmer
3 Jan 2018   [#35]
Result of a quick web search:

"IntelliSense is a general term for a variety of code editing features including: code completion, parameter info, quick info, and member lists. IntelliSense features are sometimes called by other names such as "code completion", "content assist", and "code hinting."."

So if such files were added to the coding/text editors/environments, Visual Studio, or Sublime, they would assist with writing MoI scripts?

- Brian

Show messages:  1-15  16-35  36-55  56-75  76-95  …  356-372