Parametric design in MoI?
 1-6  …  687-706  707-726  727-746  747-766  767-786  …  907-912

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.727 
Near the 1.0 ! :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7713.728 
nodeeditor.v.0.99.2017.12.18
http://moi.maxsm.net/nodeeditor

added: nodeeditor can be started from appdata directory
code:
moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );


fixed: knob/slider trackpad scroll error
fixed: small visual glitch
added: switch/button node
fixed: pointArray.concat function
fixed: JitterPts node (dS bug)
added: initial node icons support

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.729 In reply to 7713.728 
Seems node Octane is not include in this last Opus !
Must we add something from a previous post from the "deviant thread"?

Else new lang.js for French Update ;)
http://moiscript.weebly.com/uploads/3/9/3/8/3938813/lang.zip

OK i have the Octane point in extensions from the previous "deviant" post but not the "logo" Octane on the node!

EDITED: 17 Dec 2017 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.730 In reply to 7713.728 
Hello Max!

Thanks a lot for this new update!
I moved NE to my "appdata\Roaming\Moi" and all works fine (on Windows 10 Pro)

@You : "...added: initial node icons support..."

Wow! Much appreciated :)

But...how can I display the icon ? Where the icon files must be placed ? is there a naming convention for the icon files ?

Thanks.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7713.731 In reply to 7713.728 
Hi Max,

>> fixed: knob/slider trackpad scroll error <<

I got so excited reading this, because I assumed that you must have tested interfacing with a trackpad.

But the same interfacing issues persist: Zooming & panning in NE interface work only intermittently.
And other odd behaviours where panning is misinterpreted as attempt to move a node's location.

NE on V3.1 all works perfectly.
James
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7713.732 
Frenchy Pilou
>>Seems node Octane is not include in this last Opus !
As I wrote earlier the Octane node is extension. I have no plans to include it in the main nodeeditor pack.

>>OK i have the Octane point in extensions from the previous "deviant" post but not the "logo" Octane on the node!
At the moment it works with MoIv4 only.

Marco
>>But...how can I display the icon ? Where the icon files must be placed ? is there a naming convention for the icon files ?
The icon should be specified inside a node file as a base64 encoded string parameter.
Check this file: http://moi.maxsm.net/nodeeditor/extensions/octane.js

James
>>I got so excited reading this, because I assumed that you must have tested interfacing with a trackpad.
Unfortunately I still have no idea how to emulate a trackpad. I tried programs like mobilemouse, but those programs can't emulate a touchpad events.

>>But the same interfacing issues persist: Zooming & panning in NE interface work only intermittently. And other odd behaviours where panning is misinterpreted as attempt to move a node's location.
I remember about it.

Could you add a line to main.js?
Find this code (line 4525):
code:
LGraphCanvas.prototype.touchHandler = function(event)
{
    var touches = event.changedTouches, first = touches[0], type = "";
	switch(event.type)

change it to:
code:
LGraphCanvas.prototype.touchHandler = function(event)
{
    var touches = event.changedTouches, first = touches[0], type = "";
    if ( touches.length > 1 ) return;
	switch(event.type)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.733 In reply to 7713.732 
<<OK i have the Octane point in extensions from the previous "deviant" post but not the "logo" Octane on the node!
<< At the moment it works with MoIv4 only.
"not the logo" on title's node : so it's a personnal variation not include on your extension published?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.734 In reply to 7713.732 
Hi Max!

@You : "...The icon should be specified inside a node file as a base64 encoded string parameter.
Check this file: http://moi.maxsm.net/nodeeditor/extensions/octane.js"

Thanks a lot for the info.
Last question...
Which size and format the icon should be ? Png 24 bit (8red,8gree,8blue with transparent background) as we talked about months ago ?

Thanks.

Ciao.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
7713.735 In reply to 7713.734 
Hi Marco,

> Which size and format the icon should be ? Png 24 bit (8red,8gree,8blue with transparent background) as we talked about months > ago ?

If you decode the string it will give you (for his Octane Logo) a 24bit .png with a transparent background, 32x32 pixels in size.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7713.736 In reply to 7713.734 
Hi Marco

If I remember clearly, we decided to use 64x64x24 bit icons :)
This octane 32x32 icon is just a test.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.737 In reply to 7713.734 
Thanks Stefan for the tip.

Have a nice day.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.738 In reply to 7713.736 
Hi Max.

Perfect! I think 64x64 is perfect for any kind of display monitor (both SD/HD/Retina)

One question...

Is there a way to attach and display the icons also for the "categories" end the "nodes"displayed into the scrollable toolbar on the left and int the RMB pupoup menu ?
This would be a great and nice UI improvements.
For example i never use the RMB manu but only the left toolbar that is much more user freindly for me, and having the chance to display icons and/or colored icons into that toolbar would be very useful.



I stay tuned. Thanks.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.739 In reply to 7713.738 
So how do you put this little title logo ? :)
You must enter in the code?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
7713.740 In reply to 7713.739 
Hi Pilou,

if you mean the little Octane logo you have to use a base64 encoder/decoder in cmd.exe and run on a little png image
"base64 -e image.png > output.txt" and then copy the text from the output file in a string, like shown in Max's code example.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7713.741 In reply to 7713.732 
Hi Max

>> Could you add a line to main.js? <<

Yes. Although the line of code change did not fix the problem outright,
it has, at least, made NE on v4 useable, so thank you.

James
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.742 In reply to 7713.740 
This is super handy : https://www.base64-image.de/

Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.743 In reply to 7713.740 
<< if you mean the little Octane logo
Yes :)
So I must read the code and make some headache tricky manipulations for the Nodes Menu!
Wish only one must be made for have the same on the screen of the node Logo Octane Tittle ? :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
7713.744 
Hi Pilou,

i don't use Node Editor but as understood you must create an icon for every node you like to have an icon in.

So if you look at Max's code example you see how it should be done, in case you like to put an icon in your
own node file.

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7713.745 In reply to 7713.743 
Hi Pilou!

No tricky or headache at all if you are a little bit familiar with this kind of things :)

Just use the online tool I've reported (https://www.base64-image.de/) and follow this little example (pseudo code) :

code:
// This is a js node definition file placed inside the "extensions" folder
function NameOfTheNode() {	
	......
	... js code of the constructor function of the node
	......
}

// here is the section that is important for you
NameOfTheNode.title = "NodeTitle";
NameOfTheNode.desc = "Node description";
NameOfTheNode.icon = "data:image/png;base64,xxxxxxxxxxxxxxxx";


Where "xxxxxxxxxxx........" is the base 64 code generated by the online tool (https://www.base64-image.de/)


Nothing more than that :)

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7713.746 In reply to 7713.745 
Ok I have made my own for be sure to understand what i made! :)

With SumpoPaint of course! :)
https://www.sumopaint.com/home/#app

Just curious logo is not centered on the Menu's Lines?...
Maybe the original is not exactly at the center...
Edit : even the original is centered result is bottom offseted! ?

EDITED: 18 Dec 2017 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-6  …  667-686  687-706  707-726  727-746  747-766  767-786  787-806  …  907-912