Here it the RhinoScript that I am using:
'Option Explicit
'Rem Script written by Giulio
'Rem Script version lunes, 10 de noviembre de 2008 21:00:00
'Rem This script is licenced to you under the conditions shown at
'Rem http://www.giuliopiacentino.com/this/
Call Main()
Sub Main()'starts command
Dim arrLfStart(),arrRxStart(), arrLfEnd(), arrRxEnd(), arrLinks(), i 'sets intergers
Dim links: links = 36 'number of cylinders (links)
ReDim arrLfStart(links), arrRxStart(links), arrLfEnd(links), arrRxEnd(links), arrLinks(links) 'combines integer with number
Dim angleDist:angleDist = Rhino.PI / 10
For i=0 To links 'sets integer
'The following sets the path
arrLfStart(i) = Array(Cos(i-angleDist)*3 + Cos(i*12)*12, Sin(i-angleDist)*3 + Sin(i*12)*12, i*5)
arrRxStart(i) = Array(Cos(i+angleDist)*3 + Cos(i*12)*12, Sin(i+angleDist)*3 + Sin(i*12)*12, i*5)
arrLfEnd(i) = Array(-Cos(i-angleDist)*3 + Cos(i*12)*12, -Sin(i-angleDist)*3 + Sin(i*12)*12, i*5)
arrRxEnd(i) = Array(-Cos(i+angleDist)*3 + Cos(i*12)*12, -Sin(i+angleDist)*3 + Sin(i*12)*12, i*5)
'The following adds cylindars according to specified points
Call Rhino.AddCylinder(IntraPts(arrLfStart(i), arrRxStart(i), 0.5), IntraPts(arrLfEnd(i), arrRxEnd(i), 0.5), 0.5)
Next
'The following adds surfaces to the path
Call Rhino.AddLoftSrf(Array(Rhino.AddInterpCurve(arrLfStart), Rhino.AddInterpCurve(arrRxStart)))
Call Rhino.AddLoftSrf(Array(Rhino.AddInterpCurve(arrLfEnd), Rhino.AddInterpCurve(arrRxEnd)))
End Sub
Function IntraPts(byRef p1, byRef p2,byRef n)
'Rem This function gives the first point out if you use n=0,
'Rem with n=1 it gives the second point.
IntraPts = Array( p1(0)*(1.0-n)+p2(0)*n, p1(1)*(1.0-n)+p2(1)*n, p1(2)*(1.0-n)+p2(2)*n )
End Function
I know that the script works in RhinoScript. If anyone could help me out I would appreciate it.…
Added by Adam Smith at 1:57pm on September 9, 2010
W, X, Y, Z}
----------------------------------------
and if I set this
SetA = {U, V, W, X, Y, Z}
SetB = {1, 2, 3}
Imap = {2, 2, 2}
I will get this?
result = {U, V, 3, 2, 1, W, X, Y, Z}
----------------------------------
And what if I set this?:
SetA = {U, V, W, X, Y, Z}
SetB = {1, 2, 3}
Imap = {2, 2}…
Added by Frane Zilic at 3:26pm on September 10, 2010
o now is select and group together list items by their index. {0:0} and {2:0} also {1:0} and {3:0}. They way I'm doing this at the moment is quite complicated and I'm sure there's an easier way to achieve the same result.
maybe someone in here knows a solution?
thanks a lot…
;1},{0;2},{0;3}, (note that the first item is NOT {0,0})
{1;1}{1;2},{1;3},
{2;1},{2;2},{2;3},
{3;1}{3;2},{3;3}...
Well I'll just upload an extract of the definition. The data path should be the same, but with the items in the last path shifted to the first path, and the items in the first path shifted to the second path and so on.
I'll keep trying. …
ee 3)
{5}
0 15
{6}
0 16
And I want to place points at every possible combination of these coordinates, treating Tree 1 as X coordinates, Tree 2 as Y coordinates, and Tree 3 as Z coordinates. Also, I would like the list of points to be a tree with paths corresponding to the coordinates. Wouldn't it be nice if I could plug these trees into a Point XYZ, with a new "branch cross reference" method, and get the following result?
{0:3:5}
0 {10.0, 13.0, 15.0}
{0:3:6}
0 {10.0, 13.0, 16.0}
{0:4:5}
0 {10.0, 14.0, 15.0}
{0:4:6}
0 {10.0, 14.0, 16.0}
{1:3:5}
0 {11.0, 13.0, 15.0}
{1:3:6}
0 {11.0, 13.0, 16.0}
{1:4:5}
0 {11.0, 14.0, 15.0}
{1:4:6}
0 {11.0, 14.0, 16.0}
{2:3:5}
0 {12.0, 13.0, 15.0}
{2:3:6}
0 {12.0, 13.0, 16.0}
{2:4:5}
0 {12.0, 14.0, 15.0}
{2:4:6}
0 {12.0, 14.0, 16.0}
In this form of cross referencing, every combination of individual branches from the different lists is used as separate input, and the output for each combination is put onto a branch in the result whose path is the concatenation of the input branch paths used.…
Added by Andy Edwards at 7:03pm on November 3, 2009
0, 5, 10, 15, 20
1, 6, 11, 16, 21
2, 7, 12, 17, 22
3, 8, 13, 18, 23
4, 9, 14, 19, 24
and if i'm here is because i'm not able... :)
can you help me?
thank you
…
Pérez Albà McNeel Europe presents Rhino 5.0, Matus Nedecký (flying architecture) and Fabio Palvelli (3D Dreaming) show VRAY for Rhino and rendering services for architecture. We also show the new Wacom Cintiq 22 HD touch.
There are 2 events, the first at 15:00 and the second at 18:30. Places are limited to 30 people each.
As a special event you can switch between the events at a basic coffee seminar "Coffee - from the plant to the cup" part. Coffee Museum in Austrian society and economy museum was founded by Edmund Mayr, who injected together with Arch Wilhelm Holzbauer, the increase of the flak tower in Esterhazy Park. His passion for collecting are also due to the many exhibits that he has collected from all over the world. Additionally Mag. Just shows a quick roundup of "100 Years of Life and Living in Vienna" and how the inventions of Dr. Carl Auer von Welsbach changed the world significantly.
program: 15:00 to 15:45 Presentation software Autodesk Maya 2014 (group 1)
15:45 -. 16:00 Tour "100 years of life and living in Vienna / Dr Carl Auer von Welsbach in the Agricultural Museum (Group 1)
16:00 to 16:45 Presentation software Rhino 5.0 and VRAY (group 1)
5:00 p.m. to 6:15 p.m. basic coffee seminar "Coffee - from the plant to the cup" with Mr Edmund Mayr
18:30 to 19:15 Presentation software Autodesk Maya 2014 (Group 2)
19:15 -. 19:30 Tour "100 years of life and living in Vienna / Dr Carl Auer von Welsbach in the Agricultural Museum (Group 1)
19:30 to 20:15 Presentation software Rhino 5.0 and VRAY (Group 2)
20:15 finger found, drinks and "Come Together"
22:00 End of the event
Participation is FREE, due to the limited number of places but registration is required. To register for the event, we ask you to select the following options:
Online Registration 15:00 http://www.kkkc.at/component/seminar/?task=3&cid=5
Online Registration 18:30 http://www.kkkc.at/component/seminar/?task=3&cid=6
or by email: office@kkkc.at
or Tel: 01-545 78 25…
7, 9, 12 and 13 to be able to rotate freely around the y axis at nodes 2, 3, 6, 7, 10 and 11 respectively. The last 2 conditions, for elements 12 and 13, doesn't give any problems, but the first 4 does.
Any help?
…
ents will do or which components will be available.
My problem arises because I want to obtain a list such as the following:
{{6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6}, {5, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5}, {4, 5, 6, 5, 4, 3, 2, 1, 2, 3, 4}, {3, 4, 5, 6, 5, 4, 3, 2, 1, 2, 3}, {2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 2}, {1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1}}
Which displayed as a matrix is:
If it were possible to combine GH operations (series, shift list, replace string...) with matrices I think it would be quite powerful. A matrix to list component like those available on scientific calculators, would then translate the matrix to list.
For me, matrices come in handy when dealing with surface patterns.
…
Added by Jesus Galvez at 6:46am on November 26, 2012