Grasshopper

algorithmic modeling for Rhino

Matthew McFetridge
  • Male
  • Wellington
  • New Zealand
Share on Facebook
Share

Matthew McFetridge's Friends

  • Chris Welch
  • Danny Andrés Osorio Gaviria
  • Jon Mirtschin

Matthew McFetridge's Groups

Matthew McFetridge's Discussions

Working with Points and Lists
1 Reply

Hi there,I have been searching google for a while and can't seem to get underway. I'm wanting to input a list of points, with multiple branches, and simply select one item from each branch. Below is…Continue

Tags: grasshopper, python, points

Started this discussion. Last reply by 筑梦NARUTO Mar 11.

How to replace numbers in a list - Python
2 Replies

Hi there,I have a list of numbers which I want to replace with particular values, but I am coming into issues. I have been searching the internet and got this far but still getting errors. What I am…Continue

Tags: List, Values, Items, Replace, Python

Started this discussion. Last reply by Matthew McFetridge Jan 14, 2016.

If / Else Statement Python
2 Replies

Hi there,I have a Python definition set up below and it is returning null. I must be missing something obvious..I am trying to get python to return one of two lists, if InAngle = 0 then return list B…Continue

Tags: Lists, Python

Started this discussion. Last reply by Matthew McFetridge Dec 5, 2015.

Extend Surface
15 Replies

Hi there,I found this fantastic (appears simple too) VB component by Fred B…Continue

Started this discussion. Last reply by Ivan Cholakov Dec 10, 2015.

 

Matthew McFetridge's Page

Profile Information

Company, School, or Organization
Victoria Univeristy of Wellington
Web or Blog
http://cargocollective.com/matthewmcfetridge

Latest Activity

Matthew McFetridge liked CubicRAB's photo
May 19
Matthew McFetridge liked Arthur Hash's photo
May 1
Matthew McFetridge liked Michael Pryor's photo
Apr 4
Matthew McFetridge liked Michael Pryor's photo
Apr 4
Matthew McFetridge replied to Matthew McFetridge's discussion Solid brep offest
"Sorry no, I haven't looked at this in a while."
Mar 17
Sergey Tuliakov replied to Matthew McFetridge's discussion Solid brep offest
"Any progress? "
Mar 17
筑梦NARUTO replied to Matthew McFetridge's discussion Working with Points and Lists
"Hi Matthew like this?I hope this help you!"
Mar 11
Matthew McFetridge posted a discussion

Working with Points and Lists

Hi there,I have been searching google for a while and can't seem to get underway. I'm wanting to input a list of points, with multiple branches, and simply select one item from each branch. Below is a screen grab of where I'm at, any advice much appreciated! :)I'm new to Python in grasshopper and must be missing something simple about how it operates.…See More
Mar 11
Matthew McFetridge replied to Matthew McFetridge's discussion How to replace numbers in a list - Python
"I am having an issue now where not all numbers are being replaced. Do I need to append the numbers rather than replace them? And if so how would I keep the list structure the same as the input? Any help appreciated :)"
Jan 14, 2016
Matthew McFetridge replied to Matthew McFetridge's discussion How to replace numbers in a list - Python
"I just got this to work, I right clicked on the x, y, z inputs and changed the 'Access' from Item to List. I've never come across this before, could someone explain for me please or point me in the direction where I can find…"
Jan 14, 2016
Matthew McFetridge posted a discussion

How to replace numbers in a list - Python

Hi there,I have a list of numbers which I want to replace with particular values, but I am coming into issues. I have been searching the internet and got this far but still getting errors. What I am looking to achieve is to replace every 25 value in a list with 0, 40 with 1, 15 with 2 and 60 with 3. This is what I have so far:listArray = xsearchList = ywriteList = zfor n, i in enumerate(listArray):     if i == searchList[0]:         listArray[n] = writeList[0]     elif i ==…See More
Jan 14, 2016
Ivan Cholakov replied to Matthew McFetridge's discussion Extend Surface
"Cool, thanks, Djordje!  I`ll check it out!  Btw i dared to mess with the the python script that Mostapha posted earlier in the topic. It seems to work by just deleting a line for each direction. I din`t expect it to be this easy…"
Dec 10, 2015
djordje replied to Matthew McFetridge's discussion Extend Surface
"Hi Ivan,Use the Milkbox Extend Surface component.Go to Milkbox group and join the group first.Then follow this link to download the "Extend Surface" component."
Dec 10, 2015
Ivan Cholakov replied to Matthew McFetridge's discussion Extend Surface
"Hey! The link to VB component by Fred Becquelin`s one way surface extension would be useful to me, but it isn`t seem to be active anymore :/ I need to extend a surface (a curved one) in one direction. Thanks!Ivan"
Dec 10, 2015
Ivan Cholakov replied to Matthew McFetridge's discussion Extend Surface
"This is great! But i`d need to make a step back because i need a surface extension in one single direction. The link that Matt gives in the beginning isn`t active anymore (VB component by Fred Becquelin) Regards! Ivan"
Dec 10, 2015
Matthew McFetridge replied to Matthew McFetridge's discussion If / Else Statement Python
"Perfect, thanks Hyungsoo Kim!!"
Dec 5, 2015

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

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service