Full Version: Lots of unkown

From: r2d3 [#5]
 4 Nov 2017
To: ALL

Hi Cemortan_Tudor,

if you ask SO MANY QUESTIONS which are very difficult to understand and to answer Michael will have NO MORE TIME TO FINISH V4.
The most questions will find a answer if you study the forum and if you play around yourself with fantastic MOI!
Only my 3 cent... ;-)

Ralf

Reply


From: Cemortan_Tudor [#6]
 12 Nov 2017
To: ALL

Small improvement workflow, deselects obects after point pressing hotkey
showpoints script

#include "GetObjects.js"

function DoShowPoints()
{
var AnyChange = moi.geometryDatabase.showPoints();

if ( !AnyChange )
{
moi.ui.beginUIUpdate();
moi.ui.showUI( 'ShowPointsBody' );
moi.ui.endUIUpdate();

var objectpicker = moi.ui.createObjectPicker();
if ( !GetObjects( objectpicker ) )
return;

moi.geometryDatabase.showPoints();
//moi.geometryDatabase.deselectAll();
}
}

DoShowPoints();
moi.geometryDatabase.deselectAll();

Reply


From: Cemortan_Tudor [#7]
 13 Nov 2017
To: ALL

16.? 3 edges to close surface
*** the way i'm doing know is selecting 2 -> loft, others 2 - network, and last one network ! lots of operations !

there was a video of car modeling, where he was trying to refine corners of modified fillet area (fillet intersection)
i will script it


31.? are any options for sliders/buttons on 3d viewport
initialisation menu for selection option, in moi can be applied as for creating objects, or bringing stuff from obj library - well script depended
https://vimeo.com/36732689
https://modelab.github.io/react-radial/

Reply


From: Michael Gibson [#8]
 13 Nov 2017
To: ALL

Hi Cemortan,

re:
> there was a video of car modeling, where he was trying to refine corners of
> modified fillet area (fillet intersection)
> i will script it

If you could post a 3DM file with what you're trying to do that would probably help me understand your question better.


> 31.? are any options for sliders/buttons on 3d viewport
> initialisation menu for selection option, in moi can be applied as for creating objects,
> or bringing stuff from obj library - well script depended

There isn't any option currently for a pie type menu. In general I've tried to avoid popping things right up in your face like that but it is somethng that I'd like to experiment with in the future.

- Michael

Reply


From: Cemortan_Tudor [#9]
 16 Nov 2017
To: ALL

thanks for your time
here's video, i wanna try myself, i have large list of implementation that i wanna do :) starting teaching scripting.
https://youtu.be/xr6WBeHbzK0?t=12m43s

clone selected objects

#include "GetObjects.js"
function cloneObj() {

var gd = moi.geometryDatabase;
var gds = gd.getSelectedObjects();
gd.deselectAll();
for ( var i = 0; i < gds.length; ++i ){
var newclone = gds.item(i).clone();
gd.addObject(newclone);
newclone.selected = true;
}
}
cloneObj();

Reply


Message 8665.10 was deleted


From: Cemortan_Tudor [#11]
 21 Nov 2017
To: ALL

mirrorX script of selected

Attachments:
_MirrorX.js

Reply


From: ganim3d [#12]
 26 Nov 2017
To: ALL

small script that makes model too look more toonish, it's hidding selected edges and puts under an object, for overall look!
I like this function !

here a grouping option will be nice to have, if no objects are selected to hide "hidden edges'.
cant do with objects(edges are part of object, not object itself) &
styles - that i preffer to remain the same.

Attachments:
_HideSelectedEdges.js

Reply


From: WN (VLADIMIR_VOLCHEK) [#13]
 26 Nov 2017
To: ALL

Hi gamin3d.

There is such a tool.

Vladimir

Image Attachments:
1.JPG  2.JPG 

Reply


From: ganim3d [#14]
 26 Nov 2017
To: ALL

!scripting
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

Reply


From: ganim3d [#15]
 26 Nov 2017
To: ALL

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

Reply


From: Michael Gibson [#16]
 26 Nov 2017
To: ALL

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

Reply


From: Michael Gibson [#17]
 26 Nov 2017
To: ALL

There are also some related edge/face hide or show scripts here:
http://kyticka.webzdarma.cz/3d/moi/#ShadedDisplayMode

- Michael

Reply


From: ganim3d [#18]
 30 Nov 2017
To: ALL

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

Reply


From: Frenchy Pilou (PILOU) [#19]
 1 Dec 2017
To: ALL

Genious!

Reply


From: Cemortan_Tudor [#20]
 1 Dec 2017
To: ALL

i'm teaching from passed written scripts, couldn't find any info about
calculateCurveOrientation(ObjectList - curveList) return LIST

Reply


From: Michael Gibson [#21]
 1 Dec 2017
To: ALL

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

Reply


From: Cemortan_Tudor [#22]
 9 Dec 2017
To: ALL

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

Reply


From: Cemortan_Tudor [#23]
 9 Dec 2017
To: ALL

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

Reply


From: Michael Gibson [#24]
 9 Dec 2017
To: ALL

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

Reply


Show messages:  1-4  5-24  25-36

Reply to All

Back to thread list | Login

© 2018 Project Beehive Forum