MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-4  …  805-824  825-844  845-864  865-884  885-904  905-912

From: James (JFH)
31 Dec 2018   [#865] In reply to [#864]
Brian,

Thanks for the tip: RE title blocks.

Another useful workflow element that may be introduced in the near future is grouping. The attached image, shows a different node application built upon lightgraph.js, the underpinnings of NE. Similarly, group blocks could be utilised for titling of a group of nodes that perform a particular discreet function, helping to make complex node circuitry more legible.

There have been a number of advances in litegraph: http://tamats.com/projects/litegraph/demo/
It is worth having a look/play around, to see what new features may be part of NE’s development.

Anyway that is tomorrow and this is today,

Happy New Year to everyone here,
James


Image Attachments:
AD6A1D22-6929-428E-82E1-57CE1CA43DCF.png 


From: bemfarmer
4 Jan 2019   [#866]
My Duh moment for today: ConvertPts node comes in 3 modes, Curves U, Curves V, and Points.

-Brian

Message 7713.867 was deleted


From: bemfarmer
5 Jan 2019   [#868]
The following minor “bug?” was found for copy/paste of several nodes tried:

Let canvas1 be a canvas with macro detail subscreen1.
Let canvas2 be a canvas created by Alt + NewButton, which may have a macro subscreen2.

Copy/Paste of a Constant node from canvas1 to subscreen1, then the numerical contents of the constant node are copied, and the Information panel is viewable, and editable.

However, if the Constant node is copy/pasted from canvas1 to canvas2, or to subscreen2, then the Information panel is not viewable. But, if the copy in canvas2 is copied a second time, to canvas2, or subcanvas2, then the Information panel contents are viewable and editable.

- Brian
From: Max Smirnov (SMIRNOV)
5 Jan 2019   [#869] In reply to [#868]
Hi Brian,

>>The following minor “bug?” was found for copy/paste of several nodes
Yes, it's a bug, and I can reproduce it. I'll try to fix it today.

P.S. fixed
http://moi3d.com/forum/index.php?webtag=MOI&msg=9189.7
From: Max Smirnov (SMIRNOV)
7 Jan 2019   [#870] In reply to [#839]
Hi James,

I've updated Remapper node. Now it works much better.

Replace nodes/interface.js file with this one
http://moi.maxsm.net/files/nodeeditor/interface.js

P.S. Hold Alt-key to turn on snapping


From: James (JFH)
7 Jan 2019   [#871] In reply to [#870]
Happy New Year Max,

I’m away ATM, but I look forward to using this node on my return.
Your efforts are greatly appreciated. I know it was a difficult task.

Thanks so much,
James
https://www.instagram.com/nodeology/
From: bemfarmer
9 Jan 2019   [#872]
Proposed:
To the ConvertPts node, add two more Modes,
InterpCurves U, and InterpCurves V.

I tried out modifying the factory 'curve' to 'interpcurve', in two places in the points.js code, and the curves changed their mode...
Caused my project demo to have the curves go through points, but interpcurve(s) are supposed to be wigglier...
Would need to duplicate two sections of code to add the two interpcurve modes, and keep the curve modes...



Also added "e" and "f" inputs to the mathPts node, by modifying ~a dozen lines of code. (But they may not be needed...)
Seemed to work, but I may have overlooked something, in my ignorance.

Maybe I'll make a new version for the points2 extension category...

- Brian
From: James (JFH)
24 Jan 2019   [#873] In reply to [#870]
Hi Max

I have just returned home and have had opportunity to test your revised "Remapper" node.
It work brilliantly...great job.

I know that I originally proposed the node having a "range" input, but I wonder if it might be better for the script to determine the range values internally with Math.min() and Math.max() values from the input num array. If think it would simply its operation without a loss of utility.

Let me know what you think.
Thanks again,

James
https://www.instagram.com/nodeology/

Image Attachments:
remapper2019a.png 


From: bemfarmer
18 Feb 2019   [#874]
When re-running a node with curve output, and changing color style, the color does not change.
(This is not necessarily bad?)
The curve color seems to be saved in the output node.
So for a .nod which makes two curves, they can be made to show up as two different color styles, when re-ran.
- Brian

Some other actions trigger synchronization of colors...
From: James (JFH)
7 Sep 2019   [#875] In reply to [#870]
Max

I've been playing around with a customised colour scheme for NE.

Can you tell me if it is possible to have a node border in un-selected state,
similar to border in selected state?

Anyway, how are you going? We've missed you around here
James
https://www.instagram.com/nodeology/

Image Attachments:
nodeBorder.gif 


From: Max Smirnov (SMIRNOV)
9 Sep 2019   [#876] In reply to [#875]
>>Can you tell me if it is possible to have a node border in un-selected state, similar to border in selected state?

Yes. You need to open main.js and replace this code
code:
	if (selected)
	{
		ctx.fillStyle = LiteGraph.NODE_SELECTION;
		ctx.roundRect(-1,no_title ? -1 : -title_height -1, size[0]+2, no_title ? (size[1]+2) : (size[1] + title_height+2), 6);
		ctx.fill();
		ctx.fillStyle = bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR;
	}

with something like this
code:
	ctx.fillStyle = (selected)?LiteGraph.NODE_SELECTION:LiteGraph.NODE_DEFAULT_COLOR;
	ctx.roundRect(-1,no_title ? -1 : -title_height -1, size[0]+2, no_title ? (size[1]+2) : (size[1] + title_height+2), 6);
	ctx.fill();
	ctx.fillStyle = bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR;


You can use any other color instead of LiteGraph.NODE_DEFAULT_COLOR
From: James (JFH)
9 Sep 2019   [#877] In reply to [#876]
Max

Thanks for getting back to me so promptly.
I had not expected it, as you have been very quiet of late.

Changed code as instructed, & it works!

So good to hear from you,
Thanks for your help
James
From: bemfarmer
19 Sep 2019   [#878]
What would it take to get nodeeditor to compose music, or at least sound?
Does MoI have any sound output?
Have to check out Tone.js...

- Brian
From: Michael Gibson
19 Sep 2019   [#879] In reply to [#878]
Hi Brian, MoI does not itself have any sound generation and the web browser engine that is used for the UI does not have the multimedia layer enabled that I think would be needed for playing sounds or videos from HTML.

Probably your best bet would be to call moi.filesystem.shellExecute( 'other_program.exe' ); to execute a separate program that would make the sound.

- Michael
From: wayne hill (WAYNEHILL5202)
10 Jun 2020   [#880]
Support,

This is an error on the current version of the Node Editor that happens when pressing "Load" then "Cancel".

Thank you,

Wayne
From: Frenchy Pilou (PILOU)
10 Jun 2020   [#881] In reply to [#880]
line 149 for me ;)


From: Michael Gibson
10 Jun 2020   [#882] In reply to [#880]
Hi Wayne,

re:
> This is an error on the current version of the Node Editor that happens
> when pressing "Load" then "Cancel".

The fix will probably be to modify the code to check the return value from the moi.filesystem.getOpenFileName() function.

If it is an empty string it means the user pushed Cancel and it should not try to go forward with the load.

- Michael
From: Michael Gibson
10 Jun 2020   [#883] In reply to [#880]
Hi Wayne,

re:
> This is an error on the current version of the Node Editor that happens when pressing "Load" then "Cancel".

I investigated this some more and it turns out that it is not a bug in the Node Editor, it is a bug in MoI's file dialog handling. The bug crept in with a change a couple of betas ago to remember the last used file dialog directory so the dialog will start out in that directory. It ends up returning that directory name when you cancel when it should be returning an empty string.

The node editor code is already checking for an empty string like it should.

I've got it fixed up for the next v4 beta, thanks for reporting it.

- Michael
From: wayne hill (WAYNEHILL5202)
10 Jun 2020   [#884] In reply to [#883]
Thank you Michael. I thought it was a Node Editor error and was attempting to fix it on my own with no luck. Was also looking into having the Node Editor prompt a save before exiting.

-w

Show messages:  1-4  …  805-824  825-844  845-864  865-884  885-904  905-912