MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-20  …  761-780  781-800  801-820  821-840  841-860  861-880  881-900  901-912

From: FDP
13 Jul 2018   [#821] In reply to [#820]
Thanks!

Attached the zip. This is from my: 'Program Files/MoI 4.0 beta Jun-6-2018/ui' folder (64bit).

Attachments:
nodeeditorv10rc3.zip


From: Barry-H
14 Jul 2018   [#822] In reply to [#821]
Hi FDP,
not sure if this is your problem but you are missing the basicfunctions.js
I have attached a copy that you need to put in the libs folder that is within the node extensions folder.
Hope this helps.
Barry

Attachments:
basicFunctions.js


From: Karsten (KMRQUS)
16 Jul 2018   [#823] In reply to [#821]
Hello FDP,

it seems that an Installation und /ui/ Folder doesn't work. I think you have to install under appdata/Roaming/moi/.

Have a link to this post: http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.767

Maybe Max can help hopefully.

Have a nice day
Karsten
From: James (JFH)
24 Jul 2018   [#824]
Hi Max/Karsten & others who may be interested.

There is a component (widget) in grasshopper called "GraphMapper" that remaps a numerical array to values under a user defined curve. see below



I imagine that coding for such a node would be quite difficult, however I propose a more limited node that may be more achievable (below image)



In essence it would take a linear progression of number (say point distances from an attractor) and shift them to ease in and out.

Your thoughts?
James

P.S. a NE widget equivalent of GraphMapper would nevertheless still be the ideal... one day; See attached image below

Image Attachments:
curve-from-points-with-y-graph-mapper1.jpg  easing.gif  graphMapper.jpg 


From: bemfarmer
25 Jul 2018   [#825] In reply to [#824]
The FrenetKTCurve script scans a curve for values of x and y.
- Brian
From: speedy (AL2000)
25 Jul 2018   [#826]
Hi James and Friends
it is strange and curious, as though distant miles of Kilometers
our thoughts are so close ....
Just a few days ago I thought about how it would be useful
to be able to insert something similar to Graph Mapper ...
of our beloved Grasshopper, in Elephant
For this purpose, I tried to use the available tools
to recreate something similar .......
The result I have to say was better than I thought ...
But it certainly would be very useful to be able to implement it
Our gurù (max and Karsten) have material to focus on
I'd say....
We hope for good news
the file and some images at this link:
http://www.mediafire.com/file/ots3p0n6dboq42w/-Similar_Graph_Mapper.zip/file
Have a nice day to all
al

Message 7713.827 was deleted


From: James (JFH)
25 Jul 2018   [#828]
Hi All,

I have knocked up a simple macro for applying easing to a num array.
It achieves the result by physically emulating what graph mapper does with code,
by actually projected on to a user defined curve, not elegant but it works.

To see easing in action, I have included in my latest .nod file:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1182

James

Image Attachments:
easingMacro.gif 


From: James (JFH)
25 Jul 2018   [#829] In reply to [#828]
Hi All,

To better illustrate how easing macro works
please find attached animation.

In this example, the new array is input into x component of Point node,
but it could alternatively be circle/polygon radii, angles, star ratios etc.
See small image and multiEasing.nod attached

James

Image Attachments:
easingMacroAnim.gif  multiEasing.jpg 


From: James (JFH)
27 Jul 2018   [#830] In reply to [#818]
Hi Max

I had a look in the nodeeditor directory to see if there was a css file that I may alter so that the nodes showed input and output colours by default rather than only when being connected to. I believe it would be better if the nodes communicated what they "needed" from the outset. (perhaps when they were being connected to, they could high-light in white? OR alternatively dot coloured from the outset & labels coloured only when being connected)

Also in most cases it seems redundant to label outputs, but even more so, if they are coloured.

Maybe you are not in agreement with this proposal, but please give it some consideration.

Have a great weekend
James

PS I found css stuff, in index.html. I'll see if I can modify.

Image Attachments:
nodeColour.gif 


From: Max Smirnov (SMIRNOV)
29 Jul 2018   [#831] In reply to [#830]
Hi James,

you can't change it with css.
NE have a hidden feature which highlights inputs and outputs titles. Alt+Left click on Info button (left upper corner).
In the next version I'll add an ability to switch it using a color scheme settings (colors.js)

>>Also in most cases it seems redundant to label outputs, but even more so, if they are coloured.
I need to think about it. We can't hide all output titles.

UPD:
http://moi.maxsm.net/files/nodeeditor/ne.colored.dots.and.titles.zip

1. replace colors.js and main.js with this files
2. set "io_text_highlight" and "io_highlight" parameters in colors.js
From: James (JFH)
29 Jul 2018   [#832] In reply to [#831]
Hi Max,

Thanks for getting back to me, & thanks for the update: it's perfect! Great Stuff.

>> 2. set "io_text_highlight" and "io_highlight" parameters in colors.js <<.

I think it is best with "io_text_highlight" set to "false"

Did you happen to see my earlier post regarding a graphical num array re-mapper:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.824

Is this something that would be capable to achieve in canvas?
I do think it would have wide ranging application.

But I don't want you to think I am not satisfied with your recent update;
I could not be more grateful

Thank you
James

P.S. Some thoughts on Remapper widget:

By input a new range as well as the array to be remapped will increase widgets utility, so curve may be a straight line if all that is desired is to remap an array to within new range with easing; replacing my macro:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1114


Image Attachments:
Remapper.jpg 


From: Max Smirnov (SMIRNOV)
31 Jul 2018   [#833] In reply to [#832]
Hi James,

>> I think it is best with "io_text_highlight" set to "false"
In my opinion it looks better with both "io_text_highlight" and "io_highlight" switched off :)

>> Some thoughts on Remapper widget
I'll try to write this node today evening. Thank you for a good idea!
From: James (JFH)
31 Jul 2018   [#834] In reply to [#833]
Hi Max,

>> I'll try to write this node today evening.

Wow, this is exciting, Thank you so much...I can't wait.

>> Some...[MORE]...thoughts on Remapper widget

Grasshopper's Graph mapper has 10+ curve types, however several would have limited application.
Instead of emulating their approach, it would IMHO be better to have an anchor point at each end
and a pulldown menu in info panel for the number of control points (0,1,2,3 or 4). In that way, 0 control
points would give a linear remapping of numArray to new range and 1 or 2 control points provide easing.
3 or 4 control points could be used for defining geometry: say you have a linear progression (0,1,2,3,4,5)
wired into z input of Point node (x=0, y=0), as well as into Remapper node with curve as shown below.
The new series output is wired into radius input of Circle node & the Point node is wired into the Center input.
Loft the circles and you have a parametrically defined lathed form. This is a very simple example, but
imagine if multiple Remapper nodes were used together, say affecting rails and profiles of sweeps & rail-revolves,
or multiple curves Lofted or Networked to surfaces.



I imagine you are too far down the track for taking on suggestions, and if the new node allows num array
remapping by S-curve only, it will still be a huge advance for NE

I look forward to seeing what you have done
James

P.S.
>> In my opinion it looks better with both "io_text_highlight" and "io_highlight" switched off :)

For future releases, then, have them both set to false and I will reset "io_highlight" to true myself.

Image Attachments:
remapperNode4.gif 


From: speedy (AL2000)
1 Aug 2018   [#835]
Max , James and Friend
reconnect to the Graph Mapper or Remapper , or speech in any
another way we want to call it,
I unlike James, I would leave some types of curves by default :
Linear
Bezier
Sine
Cosine
Cubic
CatmulRom
and , add a Free Curve with n ° (to be defined) pt ... that govern the curve;

I believe that this way, I will be a more flexible instrument ..._

In addition, I would also like to explore the possibility of improving the tool
2D Slider, also including the possibility of multi-input
so that it becomes a sort of viewer of the curve to be obtained,
without having to pedanticly add more Slider2d ...
What do you think ?
In any case, however you decide, it will be a substantial improvement
good work
al
From: James (JFH)
12 Aug 2018   [#836] In reply to [#833]
Hi Max,

>> I'll try to write this node today evening. Thank you for a good idea!

Did it turn out to be too hard?

I'm worried that I may have asked too much with my latter post and it made the task insurmountable.

If that is the case, please return to the minimum functionality of applying easing to a numArray as per http://moi3d.com/forum/messages.php?webtag=MOI&msg=7713.833

Thank you
James
From: Max Smirnov (SMIRNOV)
17 Aug 2018   [#837] In reply to [#836]
Hi James!
Sorry, I was in business trip last week :)

>>Did it turn out to be too hard?
I wrote this node two weeks ago, but I need more time to make it work as I planned it.
In fact it's really hard. :)

You can use it, but I certainly will change it later.
From: James (JFH)
17 Aug 2018   [#838] In reply to [#837]
Thanks Max,

Remapper node is a brilliant start.

>> In fact it's really hard. :)
Please know that I am eternally grateful.


I'm sure you know full well what needs to be done for it to function correctly,
but by way of helping to clarify things I prepared the attached NE file.

At the moment the node only works within the range of input array.
So it first needs to remap the array to within new range.

The math to do this is very simple, as shown.
Ideally this functionality would be incorporated into the node.

In the event that no new range is input into the node,
the output array would remain within existing range.

I hope this accords with your intentions.

Have a great weekend
& thanks again
James

P.S. I know the remapping does not correlate perfectly with the curve,
(for instance a diagonal straight line does not result with no change to
array as expected), nevertheless it is still workable.
Although perfecting this is desirable, it is less urgent IMHO
than the remapping to new range as outlined above.


Image Attachments:
RemapperREV.gif 


Message 7713.839 was deleted


From: mkdm
19 Aug 2018   [#840] In reply to [#839]
Amazing stuff!!!

I said this so long ago but now I repeat it: "I think there's a Moi BEFORE Max's contribution and a Moi after Max's contribution"
Moi is the EXCELLENT, TOP-NOTCH, basement, and Max's stuff is what makes Moi jump to the NEXT level!!!!

Show messages:  1-20  …  761-780  781-800  801-820  821-840  841-860  861-880  881-900  901-912