MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1-20  …  81-100  101-120  121-140  141-160  161-180  181-200  201-220  …  361-372

From: Cemortan_Tudor
4 Jul 2020   [#141]
based on camera angle what's left/right/top/bottom



Image Attachments:
NewCanvas1.png 


From: Michael Gibson
4 Jul 2020   [#142] In reply to [#141]
Hi Tudor, that's an interesting idea. But what if your camera angle is right near a switchover spot? That would probably mean that you could get in a situation where you move the camera a slight amount and get a big shift in the result.

- Michael
From: Cemortan_Tudor
4 Jul 2020   [#143] In reply to [#142]
yes, but at the current align i have to guess what button should i press
for static i could change to orto views !
From: Michael Gibson
4 Jul 2020   [#144] In reply to [#143]
Hi Tudor, you don't have to guess if you look at the x/y/z axis tripod display in the lower left corner:


- Michael

Image Attachments:
xyz_display.jpg 


From: Cemortan_Tudor
4 Jul 2020   [#145]
dont have them xD well, it was a suggestion(intuitively will be right and left - ! all we know what it means xD no x & y's - it was written right side ! why it haves weird xD ))

I'm in another propose script ~ isolate update
now - the way it works it now it isolates objects, next call unhides all
what i want - isolate to update on selected objects(ex: doing some operation on objects, isolate to work further), on deselect - call isolate - unhide all. for that i need a global variable ! as I've read scripts all variables are inside scripts (i'm still learning js)
benefits - hitting twice isolate to work further - not to much ~ clicking saving
From: Cemortan_Tudor
4 Jul 2020   [#146]
options vanilla - save current color style as default
I respect blender for community they've grow

Image Attachments:
Screenshot_16.png 


From: Cemortan_Tudor
4 Jul 2020   [#147]
cplane as internal doesn't have options locating hotkeys reset, etc

I like pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed snap') ); -> moi.ui.getText()
can it be fixed at a viewport camera position (aka : bottom right; wanna do mini helper for added hotkeys that i'm doing ~ https://youtu.be/8k2NGWrKbj4?t=1239 bottom right ) only when moved over show helper (new lines will be welcome) : personalized -> mb yes -> if u won't see growth in this direction ! (I know that u want viewport as clean as possible, asking for ~ a helper point/style without can be improved - need agreement )
this also can be applied to filters ( which I have to have opened browser to view which one is active - aka edg/faces/solids/so on)
From: Michael Gibson
4 Jul 2020   [#148] In reply to [#145]
Hi Tudor,

re:
> now - the way it works it now it isolates objects, next call unhides all

No, that's not how it works now. The way it works now is on the first call it saves a snapshot of the hide/show state of all objects to internal memory, then it does an isolate. The next time you trigger it, it restores things to the pre-isolate snapshot.

For example starting with 6 objects, these 4 are hidden:




Select this object:


Do Isolate, now it is the only one visible and the other 5 are hidden:


Do Isolate a second time, only the object that was visible when the first Isolate was done is visible, not the other 4 objects which remain hidden:


- Michael

Image Attachments:
tudor_isolate1.jpg  tudor_isolate2.jpg  tudor_isolate3.jpg  tudor_isolate4.jpg  tudor_isolate5.jpg 


From: Michael Gibson
4 Jul 2020   [#149] In reply to [#146]
Hi Tudor,

re:
> options vanilla - save current color style as default
> I respect blender for community they've grow

You can do that in MoI by saving a .3dm file with the colors set how you want, then set it as the startup template file under Options > General > Template file, the styles in that file will be used as your default ones when you start up MoI or when you do a File > New :



- Michael

Image Attachments:
tudor_template_file.jpg 


From: Michael Gibson
4 Jul 2020   [#150] In reply to [#147]
Hi Tudor:

re:
> cplane as internal doesn't have options locating hotkeys reset, etc

You can set up a shortcut key for cplane reset by putting in this on a shortcut key:

script: moi.view.resetCPlane();

Also a right-click on the View > CPlane button is a shortcut for reset.


> I like pointpicker.addSnapPoint( startpt, moi.ui.getText('Closed snap') ); -> moi.ui.getText()
> can it be fixed at a viewport camera position (aka : bottom right; wanna do mini helper for
> added hotkeys that i'm doing ~ https://youtu.be/8k2NGWrKbj4?t=1239 bottom right )
> only when moved over show helper (new lines will be welcome) :

There isn't any mechanism for displaying viewport text at a fixed screen location, I would recommend using a dialog for something that stays fixed on screen rather than a viewport display object.

- Michael
From: Michael Gibson
4 Jul 2020   [#151] In reply to [#147]
Hi Tudor,

re:
> this also can be applied to filters ( which I have to have opened browser to view which one is
> active - aka edg/faces/solids/so on)

It would be a good idea to have an additional indicator for a filter being active up here somewhere, I've added that to my list of things to look into after v4 is finished.



- Michael

Image Attachments:
filter_on_notification_could_go_here.jpg 


From: Cemortan_Tudor
4 Jul 2020   [#152]
1. About isolate - it's not my idea !
It comes from softimage - it has several layers of hidden properties
1. render - can overrides lower layers
2. groups - individual only manual changed - overrides lower layers
3. layers ~ similar to objects name in moi
2. individuals ~ moi - selected object hide
1. isolate - lowest level (can tunnel from isolate to isolate until 1 object will remain - nothing else then exit)

2. Ini - thanks

3. Cplane - my idea is to combine hotkeys under groups, later expand them (c only for cplane, hotkeys after part of cplane grouping - aka reset)
~ on rest of scripts there's a waitable object where it can be placed, here i can't setup under a group
From: Michael Gibson
4 Jul 2020   [#153] In reply to [#152]
Hi Tudor,

> 1. About isolate - it's not my idea !
> It comes from softimage - it has several layers of hidden properties
> 1. render - can overrides lower layers
> 2. groups - individual only manual changed - overrides lower layers
> 3. layers ~ similar to objects name in moi
> 2. individuals ~ moi - selected object hide
> 1. isolate - lowest level (can tunnel from isolate to isolate until 1 object will remain - nothing else then exit)

Sounds very complicated.


> 3. Cplane - my idea is to combine hotkeys under groups, later expand them (c only
> for cplane, hotkeys after part of cplane grouping - aka reset)
> ~ on rest of scripts there's a waitable object where it can be placed,
> here i can't setup under a group

Yes, the cplane's event loop happens to be implemented with C++ code inside moi_lib.dll instead of in
script code so there isn't any way you can alter that one. You would have to set up your own
script for it instead.

- Michael
From: Cemortan_Tudor
5 Jul 2020   [#154]
now i'm more confused
expanding http://moi3d.com/forum/index.php?webtag=MOI&msg=8818.15 curve explorer
there where only numbers, i've change them to annotation text
1. after saving with annotations, reloading annotations will change positions !
2. crv - evaluateCurvature - understand it's trying to evaluate several connected control pts ?!?!?!
3. tg - evaluateTangent - shoudn't be perpedicular ?
4. evaluateDerivatives - what are those ? (1,2,3 - too far away, pointed direction)




with this script, arrows point different direction (I guess It's correct one, arrows are tangent*)
http://moi3d.com/forum/index.php?webtag=MOI&msg=9781.13

Attachments:
_curveExplorer_test.js

Image Attachments:
Screenshot_19.png  Screenshot_20.png 


From: Michael Gibson
5 Jul 2020   [#155] In reply to [#154]
Hi Tudor,

re:
> 1. after saving with annotations, reloading annotations will change positions !

There is a bug with the anchor point switching around when you save/reload annotation text block objects, it's fixed for the next beta.


> 2. crv - evaluateCurvature - understand it's trying to evaluate several connected control pts ?!?!?!

I'm not sure what you're asking here.


> 3. tg - evaluateTangent - shoudn't be perpedicular ?

No, a curve tangent is not perpendicular to a curve, it's the direction the curve is traveling in at that point, like this:



> 4. evaluateDerivatives - what are those ? (1,2,3 - too far away, pointed direction)

That would take a long time to explain, you could try some online descriptions like:
https://demonstrations.wolfram.com/TheDerivativeVectorsOfABSpline/

Or check out:
"NURB Curves: A Guide for the Uninitiated" by Philip J. Schneider
https://vintageapple.org/develop/pdf/develop-25_9603_March_1996.pdf

These values are vectors that represent directions, it maybe sounds like you're interpreting them as point location values instead of vector directions?

- Michael

Image Attachments:
tudor_tangent.jpg 


From: Cemortan_Tudor
7 Jul 2020   [#156]
restrictToLinePtDir
Restrict the user to only selecting points along the line defined by startPt and the vector dir. If projectAll is true, the user can select any point along the infinite line that goes through startPt in the direction specified by dir. If projectAll is false, the user can only select points along the line segment between startPt and startPt + dir.
false parameter is not working
From: Michael Gibson
7 Jul 2020   [#157] In reply to [#156]
Hi Tudor,

re:
> restrictToLinePtDir - false parameter is not working

It's working ok for me over here.

Parameter "project all" true, test script:

script: var pp = moi.ui.createPointPicker();
pp.restrictToLinePtDir( moi.vectorMath.createPoint(0,0,0), moi.vectorMath.createPoint(1,1,0), true );
while ( 1 ) { if ( !pp.waitForEvent() ) break; }

result - point tracks along given line instead of tracking along viewport's cplane grid, and object snaps are also projected onto the line:





Parameter "project all" false, test script:

script: var pp = moi.ui.createPointPicker();
pp.restrictToLinePtDir( moi.vectorMath.createPoint(0,0,0), moi.vectorMath.createPoint(1,1,0), false );
while ( 1 ) { if ( !pp.waitForEvent() ) break; }

result - point tracks along given line instead of the viewport's grid, but object snaps are not projected onto the line:




- Michael

Image Attachments:
tudor_project_line1.jpg  tudor_project_line2.jpg 


From: Cemortan_Tudor
8 Jul 2020   [#158]
Thanks ! next time I'll ask if it's working xD
I thought it will work in different way

_extendTangency 1.1
* added htlm
add functions + hotkeys
b - bothsides
a - join
f - flip sides (here I've needed ~ restrict line direction - not Togo opposite tangency direction)
---
script is not ended, but it has a good chunk of it, will return when i'll know more about html and moi basefunctions

Attachments:
_extendTangecy.htm
_extendTangecy.js


From: Cemortan_Tudor
8 Jul 2020   [#159]
how can i get difference between parallel frames ?
From: Michael Gibson
8 Jul 2020   [#160] In reply to [#159]
Hi Tudor,

> how can i get difference between parallel frames ?

Do you mean the difference in the origin points between 2 coordinate frames?

That would be like this:

var dx = FrameB.origin.x - FrameA.origin.x;
var dy = FrameB.origin.y - FrameA.origin.y;
var dz = FrameB.origin.z - FrameA.origin.z;

- Michael

Show messages:  1-20  …  81-100  101-120  121-140  141-160  161-180  181-200  201-220  …  361-372