Join Somewhere Something in Downtown Los Angeles for Summer 2016 workshop series.
Physical Computing with Firefly / August 27
GIS in Grasshopper / August 28
Grasshopper Plugins / September10+11
g it still dose not bake.
Sub RunScript(ByVal Points As List(Of Object), ByVal GridName As String, ByVal Bake As Boolean, ByVal Num As Integer)
If( Not Bake ) Then
m_count = 0
Return
End If
'Iterate through points by row
Dim i As Integer
Dim j As Integer
j = 0
For i = 0 To Points.Count() – 1
If( j > Num + 1 ) Then
j = 0
End If
Dim pt As On3dPoint
pt = Points(i)
'Name the point
Dim att As New On3dmObjectAttributes
doc.GetDefaultObjectAttributes(att)
att.m_name = GridName & "(" & m_count & ")(" & j & ")"
print(m_count)
'increment index
j += 1
'Add to document
doc.AddPointObject(pt, att)
Next
m_count += 1
A = m_count
End Sub…
iders that control the total amount ( U&V) and the branches are formed by picking i.e the U and the points will then be the number on the V slider...
I realize that this question may have been asked before, but I cannot solve it with the path mapper and it seems so easy
M…
of information in groups, and I don't know how to separate them, in differentiated lines to work with each value. The information appears and disappear , with a flickering behavior. This are the different channels, with the name of each one, and the value inherited, from each source. What can I do to separate them!!!??
/EXP/WINK_LEFT
0
/EXP/WINK_RIGHT
0
/EXP/BLINK
0
/EXP/LEFT_LID
0
/EXP/RIGHT_LID
0
/EXP/HORIEYE
0
/EXP/VERTEYE
0
/EXP/SMILE
0.2
/EXP/CLENCH
0
/EXP/LAUGH
0
/EXP/SMIRK_LEFT
0
/EXP/SMIRK_RIGHT
0
/EXP/FURROW
0
/EXP/EYEBROW
0.5
/AFF/Engaged/Bored
0.5
/AFF/Excitement
0.2
/AFF/Excitement Long Term
0.2
/AFF/Meditation
0.4
/AFF/Frustration
0.5
/COG/LIFT
0.3
/COG/DROP
0.4
/COG/PUSH
0
/COG/LEFT
0
/COG/RIGHT
0
/COG/LEFT
0
/COG/ROTATE RIGHT
0
/COG/ROTATE LEFT
0
…
Added by Carlos B.M. at 5:58pm on December 9, 2012
es, and these sum up to ~7100. I shall see if I can post a screenshot of everything.
I have no idea how to script that, sorry. But maybe could be a more optimized workflow - just feed one object B at a time, maybe that makes the math behind it more relaxed.
I should emphasize that it is not about 'fault' in the operation, and rather a very slow calculation - the difference does eventually get calculated with no errors whatsoever, the only problem is the unbelievably inefficient, or unproductive time it takes to do so. I think the problem could be the proportion of the objects, one very large, and one very small (28 / 6 / .1cm vs. .05cm), maybe that does something funky to the bounding box calls, I have no idea. And one other thing I suspect is the number of faces in the object, as I progress to let's say 700 cuts, I have then created 700*4 new faces in the object. I don't know if this is indeed something of concern. …
Added by DumDaDaDum at 7:03am on September 29, 2011
s helped in the past...but again I must be missing something simple.
here is the code and error--attached are the def and (.3DM) file:
----------------------------------------------------------------------
import rhinoscriptsyntax as rs
import ghpythonlib.components as ghcomp
#print UV
pc = []
maxVecs = []
revVec = []
movedPts = []
pc = ghcomp.PrincipalCurvature(surface, UV)
maxVecs = pc[4]
frames = pc[0]
for vector in maxVecs:
#print vector
tempVec = rs.VectorReverse(vector)
revVec.append(tempVec)
for i in range(len(frames)):
#print frames[i]
print revVec[i]
tempPt = rs.MoveObject(frames[i],revVec[i])
#movedPts.append(tempPt)
vectors = revVec
--------------------------------------------------------------
Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid
Traceback:
line 468, in coerceguid, "C:\Users\Aaron\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
line 1081, in TransformObjects, "C:\Users\Aaron\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 396, in MoveObjects, "C:\Users\Aaron\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 382, in MoveObject, "C:\Users\Aaron\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 28, in script
Any help with understanding what's going on would be really helpful.
aaron…
at your original list of numbers, if I am to go through and check manually to see what I should be getting out, I think you should only get a few outputs (which is why I was confused by all the outputs at the end of the definition.
For example, just as an example I started with X1 as 279 (item index 11). When I did the math, the only indexes that I got were 15,28, and 33.
This is because:
since 279 is positive, look for next number that is at least 180 less or 360 more than X1.
the value of 78 (item index 15) is the first value to satisfy this requirement.
Then, since 78 is smaller than 279, we are looking for the next value at least 180 more or 360 less than 78.
The value 272 (item index 28) is that next value.
Then since 272 is larger than 78, we are looking for the next value at least 180 less or 360 more than 272.
The value 52 (item index 33) is the next value.
So the definition should output the following:
indexes 15, 28, 33.
Does that make sense?…
Added by Brian Harms at 4:20pm on December 10, 2011
p;biw=1680&bih=925&tbm=isch&tbnid=UQXK-STjeJrGhM:&imgrefurl=http://www.grasshopper3d.com/forum/topics/sinusoidal-facade&docid=XRgBzjBowOStWM&imgurl=http://storage.ning.com/topology/rest/1.0/file/get/2768634805?profile=original&w=1805&h=727&ei=itp3UbHLCvDs0gWy-oGQCA&zoom=1&ved=1t:3588,r:0,s:0,i:80&iact=rc&dur=487&page=1&tbnh=141&tbnw=340&start=0&ndsp=28&tx=217&ty=36
But somehow, it doesn't seem to work when i do the same.. does anyone know why?
Regards, Rutger…