MoI discussion forum
MoI discussion forum

Full Version: Lots of unkown

Show messages:  1  …  142-161  162-181  182-201  202-221  222-241  242-261  262-281  …  362-372

From: Michael Gibson
12 Aug 2020   [#202] In reply to [#199]
Hi Tudor,

re:
> magic of offset ~ weird behavior

Offset has been tuned up quite a bit already for the next beta and it shouldn't make the weird excessive extensions anymore.

It will try to make a G2 continuous extension but it looks at how much the extension bends and once it is beyond a limit it switches to G1 line extensions:



- Michael
From: Cemortan_Tudor
12 Aug 2020   [#203]
thanks !
From: Cemortan_Tudor
13 Aug 2020   [#204]
rectangle round corner if forgot check button - applies instead of cancel entire op

Attachments:
GetRectRoundCorner.js


From: Cemortan_Tudor
13 Aug 2020   [#205]
for offset - here's a solution

if (pointpicker.event == 'finished') {
moi.command.setOption('OffsetCurveDistance', factory.getInput(1));
break;
}

if I'll need i can swap from thought point, to distance by hotkey or manual .. it will remember last input
offset factory input 1 = distance
but
moi.ui.alert(factory.getInput(1)) returns moi.object. Is a way to return value? or search for another way ?
From: Michael Gibson
13 Aug 2020   [#206] In reply to [#205]
Hi Tudor,

re:
> moi.ui.alert(factory.getInput(1)) returns moi.object. Is a way to return value? or search for another way ?

factory.getInput(index) returns a geometry factory input object which has a getValue() function on it.

- Michael
From: Cemortan_Tudor
13 Aug 2020   [#207]
sry but I have and error ..
it's making smt & I can't define where's the error

Image Attachments:
NewCanvas1.jpg 


From: Michael Gibson
13 Aug 2020   [#208] In reply to [#207]
Hi Tudor, if the input has never been initialized with any value, it will throw an "operation failed" exception.

So you would need something like:

var gotvalue = false;
var value;

try {
value = input.getValue();
gotvalue = true;
} catch(e){}

- Michael
From: Cemortan_Tudor
13 Aug 2020   [#209]
nope
factory.getInput(1) - returns object
factory.getInput(1).getValue() - always undefined

my assumption is that
1. cuz it wasnt any init from js (factory.setValue(1)...) it cant read the values from factory
2. factory.getInput(1) - has a different object format
3. curveOffsetDistance internal is returning undefined after execution -> while dragging offset - the value is always 0

I give up

Image Attachments:
Screenshot_14.png 


From: Michael Gibson
13 Aug 2020   [#210] In reply to [#209]
Hi Tudor, if you can post a complete script file that I can run over here I can take a look.

- Michael
From: Cemortan_Tudor
14 Aug 2020   [#211]
vanilla offset with hotkeys modifications
d -> swap from thought point to distance -> idea is to keep through point to distance value, so on next offset will remember last action -> since distance has already a build-in setOption

Attachments:
Offset.js


From: Michael Gibson
14 Aug 2020   [#212] In reply to [#211]
Hi Tudor, for offset the input index 1 is for a distance value, it is only filled in if you are using offset in its "offset by specific distance" mode, not in through point mode.

So for example if you type in 3 and push enter that input will get initialized to 3 and then your messages would show "3" and "true" when you pick a point for which side to offset on.

There was at one point a "curveOffsetDistance" additional property on the offset factory that would give back the current distance used for "through point" mode, but it's not working currently. I'll take a look and see if I can get that working.

- Michael
From: Cemortan_Tudor
14 Aug 2020   [#213]
Isocurve
v - swap between u/v
b - both

Attachments:
Isocurve.js


From: Cemortan_Tudor
15 Aug 2020   [#214]
Hi Michael
another future that i'd like to see -> u might not accept it
ctrl dragging(dublicate) - assign snap during dragging -> shift is straight, alt -> removes snaps, what about 'space' - readjust snapping point (readjust anchor position)
From: Michael Gibson
15 Aug 2020   [#215] In reply to [#214]
Hi Tudor, sorry no I don't think that would be very easy to add. If you want a specific anchor position, use the Transform > Move command instead of object dragging.

- Michael
From: Cemortan_Tudor
16 Aug 2020   [#216]
I'll put this at wish List
habit for select - apply action -> fillet/chamfer control points
the way it works now if points are selected, u can't apply action instead is returning to object selection
From: Cemortan_Tudor
16 Aug 2020   [#217]
Chamfer hotkeys -> works only with 1 distance

Numpad+ -> value + value/2
Shift+Numpad+ -> value + value/10
Numpad- -> value - value /3
Shift+Numpad- -> value + value/10
Numpad* -> value*2
Numpad/ -> value/2
Ctrl+Shift+Numpad+ -> value +value/100
Ctrl+Shift+Numpad- -> value - value/100
r - reset distance to 0 -> to start new one

Attachments:
Chamfer.js


From: Cemortan_Tudor
16 Aug 2020   [#218]
scale/rotate/move gizmo
move - holding shift has a snapping direction, will be nice also for scale snapping direction
From: Cemortan_Tudor
16 Aug 2020   [#219]
found a solution for move -> copy
http://moi3d.com/forum/index.php?webtag=MOI&msg=8665.182

Move
added C -> move copy (duplicate origin with move hotkeys options), works before 1'st picked point

Attachments:
Move.js


From: Michael Gibson
16 Aug 2020   [#220] In reply to [#218]
Hi Tudor,

re:
> scale/rotate/move gizmo
> move - holding shift has a snapping direction, will be nice also for scale snapping direction

Shift is already being use there for a different function, it does a 2D scale instead of a 3D scale.

- Michael
From: Cemortan_Tudor
16 Aug 2020   [#221]
Hi again !
So a question about pointpicker -> Is any option to force update ?
I've noticed in move commands - where I swap axis by hotkeys & it won’t update until I'll do a mouse move - seems that forces to update factories
now I'm working in combining rectangles under 1 script - needs also a pointpicker update (I'm updating factory - but since pointpicker haven't changed -> no updates) have a basept, need to update second pt or waitable pointpicker pt

Show messages:  1  …  142-161  162-181  182-201  202-221  222-241  242-261  262-281  …  362-372