Grasshopper

generative modeling for Rhino

John Li
  • Male
  • Blacksburg, VA
  • United States
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (9)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

John Li's Discussions

Bake Material Color

Hey guys,I am trying to write a script which changes an objects material color.  Then when the object is baked into rhino, the material will retain this color, so it shows up when I render the…Continue

Tags: Material, Color, Bake

Started Aug 7, 2012

'IF' 'THEN' statement question
3 Replies

Hey guys,I have a loop from lets say: i as int32 = 0 to 50. I am trying to make an IF THEN statement, where: IF i = even integer THEN it does something ELSE it does something else. However I cannot…Continue

Started this discussion. Last reply by Jon Bailey Jan 10.

CA Script help!

Hey guys,I am trying to write a script which produces an aggregation of boxes according to a random number that has been generated through a loop.  I want the boxes that have not been generated in…Continue

Started Jul 17, 2012

VB script to making a surface from a list of curves.
2 Replies

Hey guys,I am new to Vb scripting and grasshopper, and trying to make a surface from a list of curves, and can't figure out the best way to do this in VB script. I have tried writing a script for a…Continue

Started this discussion. Last reply by John Li Jun 25, 2012.

 

John Li's Page

Latest Activity

Jon Bailey replied to John Li's discussion 'IF' 'THEN' statement question
"I am trying to do an if/then statement from the Collision Many|Many component.   If "True" then, move "x" amount....   "
Jan 10
John Li replied to John Li's discussion 'IF' 'THEN' statement question
"Great! Thanks David!"
Jul 26, 2012
David Rutten replied to John Li's discussion 'IF' 'THEN' statement question
"If(x Mod 2 = 0, PerformActionOnEven, PerformActionOnOdd) -- David Rutten david@mcneel.com Poprad, Slovakia"
Jul 26, 2012
John Li posted a discussion

'IF' 'THEN' statement question

Hey guys,I have a loop from lets say: i as int32 = 0 to 50. I am trying to make an IF THEN statement, where: IF i = even integer THEN it does something ELSE it does something else. However I cannot figure out the right syntax to write this statement.  Does anyone know how to do this? Any help would be appreciated.Thanks.See More
Jul 26, 2012
John Li posted a discussion

CA Script help!

Hey guys,I am trying to write a script which produces an aggregation of boxes according to a random number that has been generated through a loop.  I want the boxes that have not been generated in the first loop to be generated in the second loop, or third..(depending on how many iterations I give it.)  However, for each loop my script has been giving me a new set of boxes, instead filling in the boxes which where not generated from the loop before it.  Can anyone help me with this?!Thanks in…See More
Jul 17, 2012
John Li replied to John Li's discussion VB script to making a surface from a list of curves.
"I managed to do it by using loft and sweep.  Thanks for your response. "
Jun 25, 2012
Giulio Piacentino replied to John Li's discussion VB script to making a surface from a list of curves.
"Hi John do you need to create a loft among these curves? - Giulio________________giulio@mcneel.com"
Jun 22, 2012
John Li posted a discussion

VB script to making a surface from a list of curves.

Hey guys,I am new to Vb scripting and grasshopper, and trying to make a surface from a list of curves, and can't figure out the best way to do this in VB script. I have tried writing a script for a nurbssurface, but had no luck.  Anyone know the best commands or have any examples for creating a surface from a list of iterated closed curves? Thanks,See More
Jun 18, 2012
John Li replied to John Li's discussion Help with iterating Curves in VB
"Both your responses worked and were very helpful.  Thanks a lot! "
Jun 12, 2012
Sridevi Koonath replied to John Li's discussion Help with iterating Curves in VB
"Hi John, a possible solution is to replace Dim RandomClass As New Random with Dim RandomClass As New Random(i).     "
Jun 12, 2012
David Rutten replied to John Li's discussion Help with iterating Curves in VB
"There are several problems with your code. One of them is that the Random class should really be created either only once, or each time with a different seed. Another problem is that it is not possible to output a List(Of Point3d) which represents a…"
Jun 12, 2012
John Li replied to John Li's discussion Help with iterating Curves in VB
"Yeah sure, so I am trying to output a list of random curves which are composed by a list of four points using vb script.  However the script I wrote only output one random set of four points.  Then repeats the same points N times apart…"
Jun 11, 2012
huaxiamengqing replied to John Li's discussion Help with iterating Curves in VB
"sorry,I don't understand what you want.Can you explain it more detail? and can you show the full code you write."
Jun 11, 2012
John Li posted a discussion

Help with iterating Curves in VB

Hi, I am new to scripting and grasshopper and have been trying to write a script for a simple vb button, which iterates a simple four point curve using loop. However, my script is only iterates one curve and then repeats it.  The random numbers don't iterate themselves after each loop. My script:Dim points As New list(Of Point3d) For i As int32 = 0 To N 'defining the points for cruve Dim pt1 As New point3d Dim pt2 As New point3d Dim pt3 As New point3d Dim pt4 As New point3d pt2 = New…See More
Jun 11, 2012
John Li is now a member of Grasshopper
Jun 11, 2012

Profile Information

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service