MoI discussion forum
MoI discussion forum

Full Version: Nodebundle for playing with nodes

Show messages:  1-11  …  752-771  772-791  792-811  812-831  832-851  852-871  872-891  …  1852-1859

Thread Split: Some posts in this thread have been moved here

From: Frenchy Pilou (PILOU)
5 Dec 2017   [#812]
Here the French last! :)




From: James (JFH)
5 Dec 2017   [#813] In reply to [#811]
Hi Pilou,

>> How do you attach something to a Macro node ? <<

A macro node is just an empty container until node circuitry is put inside.
To do something it needs input/s & output/s that may be connected.

Try double clicking on an existing macro to discover what is inside,
or alternatively create a new macro, double click on it, and add some node/s
include input and output from menu drop down, and then click BACK on the nav bar.

It will all become clear,

James
From: Frenchy Pilou (PILOU)
5 Dec 2017   [#814] In reply to [#813]
Aaaaaaaaaaaah damned! :)

Things hidden from the beginning world! :D

So more nodes to translate! :D
I will obtain an Universalis Encyclopedia! :)

And yes all is quasi clear now! :)

PS Can we put a macro inside a macro ?

And does exist something to alert when you create a node with a name yet existing ?


From: bemfarmer
5 Dec 2017   [#815] In reply to [#814]
A macro can contain a macro.
- B
From: Frenchy Pilou (PILOU)
5 Dec 2017   [#816]
So Fractal world! :)

Missing a paradigm! :)

Circle is drawn inside the macro, not outside the macro!
What i missed ?


From: James (JFH)
6 Dec 2017   [#817] In reply to [#816]
Hi Pilou

>> What i missed ? <<

Right Mouse Button click on "Out" in macro
select "Objects" (the default is "Numbers", no appropriate for a curve)

Also remove regular "Output" inside macro, as this will create problems.

Hope this helps
James
From: Frenchy Pilou (PILOU)
6 Dec 2017   [#818] In reply to [#817]
Bravo! Excellent!

Now the more difficult will be to not use this marvelous toy before the next year! :D




So the secret was to take "object" on the "output" in the Macro!

From: r2d3
6 Dec 2017   [#819] In reply to [#818]
WOW!

yes, the secrets of the macros are finally discovered!
And you can save macros for reuse.

In the animator11.nod there are a couple of macros inside a macro inside a macro....

for example i made a if/else macro (f.e.: ><180) which i used for different cases...
Once you figured out a funtion -> save it as macro and reuse it for a different case...


Bon Noël <:-)



Image Attachments:
ifelsenod.png 


From: Frenchy Pilou (PILOU)
6 Dec 2017   [#820]
French Translation of the animator11.nod + Mini Manual of a Macro!
http://moiscript.weebly.com/elephant-systegraveme-nodal.html



then Macro / animator11


From: speedy (AL2000)
6 Dec 2017   [#821]
Hello to all
a little exercise that starts
from a very interesting surface
the Oloid -
Some deformations , a wire that starts from
surface structure.... et voilà .....

How many interested people find the file at this link:
http://www.mediafire.com/file/qhvj5752j9y7x3f/Oloid_Bracelet.rar
have a nice evening everybody
alberto
From: Barry-H
7 Dec 2017   [#822]
Hi All,
I have had this error report when pressing run on my test collision nod.
but after I clear the error report the nod file runs ok.
Not sure if it's a bug or my nod file setup ?
The nod takes 2 objects and checks for a collision and if so moves the second object till clear.
Any thoughts ?


Barry











Image Attachments:
Collision.gif  Screenshot (38).png  Screenshot (40).png 


From: r2d3
7 Dec 2017   [#823] In reply to [#822]
For me it looks like there is a value not set in the beginning..
Try to set defaults in the "prototype.onAdded = function()"
From: Barry-H
7 Dec 2017   [#824] In reply to [#823]
Hi Ralf,
are you referring to the Collision.js file ?
It as this at the moment Collision.prototype.onExecute = function()
Cheers
Barry
From: r2d3
7 Dec 2017   [#825] In reply to [#824]
Hi Barry,

i only have the Barry.js which still has the boolean output

Where can i fin the collision.js?

But while developing other extensions i got the same error and i was able to correct this by adding defaults in the onSdded function...

Can you post the collision.js and the nod you playing with?
From: Karsten (KMRQUS)
7 Dec 2017   [#826] In reply to [#824]
Hello Barry,

the Problem is not in your node - it's the Feedback effect of the nodefile itself. The Output of collision becomes, by detours to the Input.

I think that is catched by the nodeeditor to avoid infinity running. A Problem that has to be solved for optimisations or by a node itself.

I think about it, nevertheless we have to ping Max for his opinion.

Have a nice day
Karsten

p.s.: I don't think that you Need a new node - and try to avoid boolean in nodeeditor progamming - Max has made a decission to use numarray for that Look at his logic nodes. At the end it's the same. Only difference you can directly calculate with a result of a logical comperation.

Attachments:
clash.nod


From: Barry-H
7 Dec 2017   [#827] In reply to [#826]
Hi Karsten,
attached are my Barry/Collision node and the Collision.nod file.
It's a work in progress.
Am I using a Boolean in the node ?
Thanks for the clash.nod will try to see if I can use it instead but
not sure how I automate the movement yet.
Cheers
Barry
From: r2d3
7 Dec 2017   [#828] In reply to [#826]
Hi Karsten,

looks like you are right in every point...

Attachments:
collision.nod


From: Frenchy Pilou (PILOU)
7 Dec 2017   [#829] In reply to [#828]
Cool nothing to translate for this one... a miracle! ...
... but how do use it? :D
(Collision tittle is in red (?) )
Must I use also the Barry.js and where i must put it ? Normal folder or extensions ? or...


From: Barry-H
7 Dec 2017   [#830] In reply to [#829]
Hi Pilou,
it's a work in progress at the moment so the final aim is to auto place objects touching or with a given gap.
If you place Barry.js in extensions you will be able to try the Collision.nod.
Draw 2 objects make them overlap and press run ( close error report ) and they will automatically move till they do not overlap.
To reset the quartz node value as to be manually reset to 0.
Cheers
Barry
From: bemfarmer
7 Dec 2017   [#831]
Hi Barry,
I cannot say if "feedback" is a problem, but note that many months ago, near the beginning of NodeEditor,
I read a post in Grasshopper, of a way to do "feedback," wiring,
which as far as I know, is not normally possible...
Back then, I think I posted a brief sentence about it...
- Brian

ps: General information: The barry.js file goes in the extensions folder of nodeeditor.

Show messages:  1-11  …  752-771  772-791  792-811  812-831  832-851  852-871  872-891  …  1852-1859