In Need of a Plugin
-
Posted this in the Wishlist forum as a potential feature request for a future release of SU but I'm hoping someone here can help me out faster.
I need a plugin that allows me to select two endpoints of two different line segments and create a third point by combining the Y and Z coordinates of the first selected point with the X coordinate of the second selected point, creating a third point.
For example, Point A lies at 2,2,2. Point B lies at 3,3,3. I select Point A, then Point B, and create Point C at 3,2,2.
I spoke with a member of #ruby-lang about this and he said such a plugin would only be a few lines long but he doubted that anyone had written such a "trivial" plugin.
Would anyone here be willing to take a stab at making this plugin for me? I asked a friend of mine who is a programmer to try it but he has no experience with ruby or SU. Thanks in advance.
-
http://forums.sketchucation.com/viewtopic.php?f=323&t=24019
There you go. I have no clue what this could be used for, but I hope it helps you
Chris
-
Sounds interesting. How about a screenshot demo of what it could be used for, Mael?
(I was thinking of the top of walls- can't remember the name of the type of feature though ) -
I need something similar: Imagine you have coordinates of points in space A[0,0,0] B[0,1,0] C[1,0,0] D[1,1,0] E[0,0,1] F[0,1,1] G[1,0,1] H[1,1,1]
These 8 points are part of cube. Is it possible to write a script, that would be able to make boxes (not only cubes) from series of points that are written in excel table? I mean it should find lines, close them and create faces between them.
Thanks.
coulteri -
Yes, easy done...
You need two parts.
Part one reads the data from a file - best from a .csv or .tsv file [comma or tab separated-variable format easily exported from Excel], reading .xls directly from Ruby is possible but not starightforward. Then turn it into float values in an array.
Part two takes the read-in array of numerical data and makes the faces as desired.You can easily test the second part by manually typing the array and doing a looped operation on it to make the faces it defines... Be sure to get the order of the 4 points coplanar and in order so that the face is facing the right way up.
There are several examples of scripts reading data files so use one of those to make the data reading part...
-
Thanks!
But still too difficult for me. I do not know ruby scripting at all. I think I have to learn a lot about it. -
Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
Advertisement