MoI discussion forum
MoI discussion forum

Full Version: Nodebundle for playing with nodes

Show messages:  1  …  762-781  782-801  802-821  822-841  842-861  862-881  882-901  …  1842-1859

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

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.
From: Unknown user
7 Dec 2017   [#832]
Hi all.
My little contribution in the NodeEditor.
Added: Arc3pt, ArcCenter, Circle3pt, CircleDiameter, Ellipse3pt, EllipseCenter.
Allowed: node - test, and me to criticize :)
Vladimir.



From: James (JFH)
7 Dec 2017   [#833] In reply to [#832]
Hi Vladimir

Your node contributions are great & long overdue.

It is hard to see how they could be improved upon,
except maybe compiling them into meta-nodes with RMB sub-options.
Also it would be a real improvement if arcCenter node emulated the tool's function
of having "start point" & "angle" options"




Nevertheless, as they are, they will be extremely useful,
so thank you

James

PS one thing you should probably consider is putting them under
their own menu heading "Curves2" below the line.

It has been agreed practice that Max's nodes are sacrosanct,
& extension node are kept separate.

Image Attachments:
ArcMetaNode.png 


From: Frenchy Pilou (PILOU)
7 Dec 2017   [#834] In reply to [#831]
About collision :nothing arrives! (collision node is not yet red ! :)

Must i "name" each object ? These can be volumes ?

When you say put Barry.js inside nodes\extensions it's inside or outside
...\ui\nodeeditor\nodes\extensions\libs ?
From: bemfarmer
7 Dec 2017   [#835] In reply to [#834]
Under extensions, same place construct2.js is located.
- B

By the way, while playing with the stock Construct/intersect node, with a circle and a rectangle, the stock intersect node does not yield the same
results as the MoI intersect script.
From: Frenchy Pilou (PILOU)
8 Dec 2017   [#836] In reply to [#835]
Hum hum done but nothing arrives!
I have 2 closed curves each named with a different name. Overlaped on the same plane.

What collision? Take your or the Ralph Collision ?

And after : select the 2 forms then "Run" ? or ...



Ps How reset a Node(s ? Stop then Run ? or...

How erase a node ? Select it then remove, then reload or...
From: Karsten (KMRQUS)
8 Dec 2017   [#837] In reply to [#832]
Hello Vladimir,

that's good News. I haven't the time to test your new nodes, but I'm glad to hear about new contributions!

Thank you very much for sharing!

Have a nice day
Karsten
From: speedy (AL2000)
8 Dec 2017   [#838]
Hi Vlad, i tested your's new node
it's work perfectly
Many thanks ,Bravo...
alberto
From: Barry-H
8 Dec 2017   [#839] In reply to [#831]
Hi Brian,
I did a Google search and found grasshopper as a plugin called Hoopsnake that allows feedback.
This is the link http://www.grasshopper3d.com/group/hoopsnake.
Perhaps Max or Karsten will have a look and see if it's possible to create something similar.
Cheers
Barry
From: bemfarmer
8 Dec 2017   [#840] In reply to [#839]
Hi Barry,
Yes, hoopsnake. I wonder if nodeeditor has "feedback" detection code?

There is also a Grasshopper way to feedback to (say multiple) sliders, to increase sliders, potentially up to their maximum,
written by the author of grasshopper.
I'll post the link tonight.
Maybe sliders could have range multipliers controlled by the bounding box(s)...(?)


- Brian
From: Karsten (KMRQUS)
8 Dec 2017   [#841] In reply to [#839]
Hello Barry,
yep! Thats exectly what I thought. Possible to make global container to place results and read them in a next iteration back. Ralf - thanks for the contribution - has used something similar in the stream node - only problem - more than one of this node.
I need to have a deeper look - next days.

A nice weekend to all
Karsten

Show messages:  1  …  762-781  782-801  802-821  822-841  842-861  862-881  882-901  …  1842-1859