Nodebundle for playing with nodes
 1-7  …  1088-1107  1108-1127  1128-1147  1148-1167  1168-1187  …  1848-1859
Thread Split: Some posts in this thread have been moved here

Previous
Next
 From:  Karsten (KMRQUS)
7777.1128 In reply to 7777.1127 
"Hello - is it this you looking for - I can see it in your eyes - I can see it in your smile ..."

Not direct the closest distance, but more general. It is the project curve factory and it works also for points to curves. Please test and study. The direction mode takes the x-axis of the frame input. For closestpt it is not necessary.
code:
        function Project()
{
	this.addInput("Objects","objectlist");
        this.addInput("Target","objectlist");
	this.addInput("Frame","pointarray");
	this.addOutput("Out","objectlist");
	this.properties = {ProjectMode:["closestpt","closestpt","direction"]};
}

Project.title = "Project";
Project.desc = "Project";

Project.prototype.onExecute = function()
{
        var obj = this.getInputData(0, moi.geometryDatabase.createObjectList());
        var target = this.getInputData(1, moi.geometryDatabase.createObjectList());
        var f = this.getInputData(2, new pointArray(true));
        var output = moi.geometryDatabase.createObjectList();
	//0 Object
	//1 Objects
	//2 projectmode
	//3 basePt
	//4 TargetPt
	//5 delete inputs
	//6 plane
	//7
	var frame = f.getFrame();

	var pFac= moi.command.createFactory( 'project' );
	pFac.setInput( 0, obj );
	pFac.setInput( 1, target );
	pFac.setDefaultDirection();
	pFac.setInput( 2,this.properties.ProjectMode[0] );
	pFac.setInput( 3, frame.origin );
	pFac.setInput(4,frame.evaluate( 1, 0, 0 ) );
	pFac.update();
        output = pFac.calculate();	
	pFac.cancel();
        this.setOutputData(0, output);
};

LiteGraph.registerNodeType("Construct2/Project", Project);


A nice day to all
Karsten
Attachments:

  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)
7777.1129 In reply to 7777.1128 
Hi Karsten,

Well there was hardly any time for impatience, you've done it....and it is just perfect.

Brilliant stuff as always
James

PS This is an application where reMapRange is useful: allowing greater controls of min/max radii and extrude height.

EDITED: 14 May 2019 by JFH

Attachments:

Image Attachments:
Size: 46.5 KB, Downloaded: 30 times, Dimensions: 480x469px
  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)
7777.1130 In reply to 7777.1128 
Karsten,

Your new node is a godsend.....which makes you a....?

Here, a ptArray is deformed with a curve, which makes for a delightfully simple way of generating a parametric surface.

James



PS Karsten, if you are now open for suggestions; this is a big one: it requires 2 nodes to work in unison. Firstly a image import node and secondly a node that converts greyscale values to numArray (à la Max's heightMap script). These num values may be z value for a ptArray, however they may alternatively be radii of circles (Che) or scale values or whatever............ Could Be Good!

This not even a request, just something to get you excited about. In the meantime there is no end of fun possible with your latest node.

Below image: using circle attractor

EDITED: 14 May 2019 by JFH

Attachments:

Image Attachments:
Size: 22.8 KB, Downloaded: 19 times, Dimensions: 640x365px
  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:  speedy (AL2000)
7777.1131 
Hi Karsten and James
One thing friends ...
the js file for the NE (Project)
where can I find it...
you've already posted it, and I missed ...
thank you
al
  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)
7777.1132 In reply to 7777.1131 
Hello Alberto,

>> the js file for the NE (Project)... where can I find it..<<

Copy the code (within grey rectangle) @
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1128

and paste into the bottom, but just above })(); of Construct2.js code.

Directory:
C:\Users\< user name>
\AppData\Roaming\Moi\nodeeditor\nodes\extensions\construct2.js

Hope this helps
James

PS If you have not already done so, also paste in code for railRevolve and Network.
Code found in posts below:

http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1085
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1086

EDITED: 27 Jun 2018 by JFH

  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:  speedy (AL2000)
7777.1133 
Hi James

I think I'm wrong
I'm in difficulty with the copy and paste operations
that step by step you showed me .. I think I did not understand well
how and where to paste the script ...
can not you send me (construct2.js) already updated with it
script project inserted in .....
like you did with Network and Rail revolve,
then I'll put it in the usual directory ...
Thank you
alberto
  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)
7777.1134 In reply to 7777.1133 
Hi Alberto
Please find attached.
Good Luck
James

EDITED: 11 May 2019 by JFH

  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:  speedy (AL2000)
7777.1135 
Many ,Many Thanks my Friends
have a nice day
al
  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)
7777.1136 
Hi All,

So here's ya 70's Prog Rock album cover right here



Click on CLICK ME. Click again to get new result......repeat.

James

EDITED: 14 May 2019 by JFH

Attachments:

  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
7777.1137 In reply to 7777.1136 
So cool!!

- Marco (mkdm)
My Procreate portfolio
  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:  speedy (AL2000)
7777.1138 
Hi Karsten,James and all Friends
A gold ring with a decoration Lapislazzuli paint;
a gift, which could be good for any woman,
mother, wife, friend, partner, lover, do you....
Don't make Jokes ....
the file at this link:
http://www.mediafire.com/file/pfrr7tzwz4crozg/Diamond_Ring.zip/file
have a nice day to all
alberto
  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)
7777.1139 In reply to 7777.1138 
Hello Alberto,

Wow, I was not expecting that...really amazing animation
Keep up the great work
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:  speedy (AL2000)
7777.1140 
Good Morning James ,
I have to say the same thing for you ,
sincerely the Voxel file is "unsettling"
(in italiano , direi spiazzante)
Bravo, and original .....
have a nice day
ciao
al
  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:  Barry-H
7777.1141 In reply to 7777.1129 
Hi James,
I have downloaded your remap nod file but getting this error ( ReferenceError: Can't find variable: magnitude)
So not sure if I have all the latest additions to extensions. (I have added the one's posted by Karsten)
Any Idea's what I'm missing.
Barry
  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)
7777.1142 In reply to 7777.1141 
Hi Barry,

I just reviewed the reMapNode.nod file :
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1114

and there is no recent extension nodes that you might be missing. Though, I have only tried it with MoiV4, perhaps it has backward compatibility issues.

I'm sorry that I cannot more helpful
James

EDITED: 28 Jun 2018 by JFH

  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:  Karsten (KMRQUS)
7777.1143 In reply to 7777.1141 
Hello Barry,

please check if basicfunctions. js is missing in extensions/libs.

Have a nice day
Karsten
  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:  Barry-H
7777.1144 In reply to 7777.1143 
Hi Karsten/James,
correct the basicfunctions.js was missing from my node editor version in Moi V4
All's working well again.
Many thanks.
Barry
  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:  speedy (AL2000)
7777.1145 
Hi Friends ,
a Torciglione whose execution
it is entrusted to the Macro Helix, and to the subsequent adaptation
to a reference curve-
As usual, the file at this link:
http://www.mediafire.com/file/s9mz17a6mp9z11x/TORCIGLIONE.rar/file
Have a nice Week-end to all
alberto
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 7777.1146 deleted 8 Aug 2020 by JFH

Previous
Next
 From:  Frenchy Pilou (PILOU)
7777.1147 
Ocean's waves! :)
---
Pilou
Is beautiful that please without concept!
My Moi French Site 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
 

Reply to All Reply to All

 

 
Show messages:  1-7  …  1068-1087  1088-1107  1108-1127  1128-1147  1148-1167  1168-1187  1188-1207  …  1848-1859