MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-15  …  816-835  836-855  856-875  876-895  896-912

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
From: redraw (MAYSKY)
24 Jul 2020   [#885] In reply to [#642]
When I select the “Export” command there is no dialog or options to export as shown in your post.
From: Frenchy Pilou (PILOU)
24 Jul 2020   [#886] In reply to [#885]
It's maybe for a MAC user ?

I have not also this...but my Macro is well exported... ;)
From: redraw (MAYSKY)
24 Jul 2020   [#887] In reply to [#754]
I unzipped the Extensions.zip file into the [C:\...\AppData\Roaming\Moi\nodeeditor\nodes\extensions\]
It created another Extensions folder.
But how do I access these?
From: Tim (TGILMORE)
6 Oct 2020   [#888]
Could someone suggest where I might start as a beginner with the Node Editor.

Website?
Forum Page?

Thanks
Tim
From: bemfarmer
6 Oct 2020   [#889] In reply to [#888]
Hi Tim

http://moi3d.com/wiki/Nodeeditor

- Brian

Some of the information is not up to date...So recent forum posts may be helpful for install.
Max's site has the latest version.
An it runs just fine on MoI4Beta.
From: Tim (TGILMORE)
6 Oct 2020   [#890] In reply to [#889]
This looks like what I needed, Thanks so much.

Tim
From: Frenchy Pilou (PILOU)
6 Oct 2020   [#891]
https://moiscript.weebly.com/biblio-elephant.html ;)
From: Psygorn (DRILLBIT)
6 May 2021   [#892] In reply to [#891]
Hi PILOU,

What is the difference between your Elephant & Max's Node editor?
Are they the same?
Your website provides the latest version of it?
Or we should go to Max's webpage?

I get kind of confused what is VF what is VO? and which version works best on MOI V 4.0?
I am using Windows.
From: Frenchy Pilou (PILOU)
6 May 2021   [#893] In reply to [#892]
Yes Elephant is the name of the Node Editor for Moi by Max Smirnov
It's it that i have on my site!

VO = Original English Version
VF = French Version of the Native Nodes of Elephant (but has also no native nodes but these no native are not translated)

All versions works fine with Moi.4.0

<< Or we should go to Max's webpage?
No Lastest version of Elephant is the Version modifyed by creators of nodes so many more nodes than original Elephant
and managed by James http://moi3d.com/forum/index.php?webtag=MOI&msg=9358.10
there you can download a zip NodeEditor !

But maybe Max will made soon a new version after the release of the who knows! :)
From: Psygorn (DRILLBIT)
6 May 2021   [#894] In reply to [#893]
I ended up with an error!



I have downloaded "nodeeditor.zip" from: http://moi3d.com/forum/index.php?webtag=MOI&msg=9949.12 (Post number = 9949.12)
then I extracted the zip file into ...AppData\Roaming\Moi

and then I made a shortcut for it "Alt+N" and added : ​moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );

but I ended up with an error!

What should I do?
From: Michael Gibson
6 May 2021   [#895] In reply to [#894]
Hi Psygorn, that error means you've got some unusual text characters inserted into the shortcut key text. Maybe if you're preparing the text in a word processor that has styles and such applied to it that is carrying along some extra stuff. Try using a plain text editor or set the document type to be plain text.

- Michael

Show messages:  1-15  …  816-835  836-855  856-875  876-895  896-912