Это видео недоступно.
Сожалеем об этом.

Learn Python for Grasshopper - Full Course for Beginners - Free

Поделиться
HTML-код
  • Опубликовано: 18 авг 2024
  • This course will give you a full introduction to all the core concepts of using the GHPython component and Python programming language in Grasshopper.
    Contents:
    0:00 - Introduction
    0:44 - The Python Component
    1:29 - Your First Script
    3:01 - Python Version
    6:13 - Basic Data Types
    9:25 - Data Structures
    22:51 - Conditionals
    26:21 - User Input
    31:51 - For Loops and Geometry
    39:09 - Messages
    48:15 - Generating Geometry
    55:09 - Attractors
    59:05 - Functions and Baking
    1:05:12 - Node in Code
    1:16:00 - Outro
    Follow me:
    on / singline
    on / karlsingline
    on / karlsingline
    on / karlsingline
    Want more in depth content, consider my Patreon:
    / karlsingline

Комментарии • 74

  • @marialuizagomestorres6875
    @marialuizagomestorres6875 Год назад +7

    by far one of the best tutorials ever of python in grasshopper thank you so much!! looking forward for a full course! Would totally invest in one!

  • @martinohnmacht7979
    @martinohnmacht7979 Год назад +4

    Please!!! More of these Tutorials! It makes so much fun and you've the talent to teaching it great!!! Thanks for this video.

  • @bakurigogua8042
    @bakurigogua8042 Год назад +1

    It is a very useful and comprehensive tutorial indeed. Thx Karl. Please, keep up doing tutorials like this(Python for GH).

  • @naitiksharma9728
    @naitiksharma9728 Год назад +1

    Thank you for this video, would love to see more on Python for Grasshopper

  • @quarkmax9426
    @quarkmax9426 Год назад +1

    太棒了,这个视频让我如此开心,非常感谢!

  • @marcinbrzezicki1860
    @marcinbrzezicki1860 Год назад +1

    Thank you for this tutorial. This was my first contact with python is gh, and it seems it was a really compressed tutorial.

  • @untuckedshirts
    @untuckedshirts 2 года назад +4

    Love the chapter markers, thank you!

  • @Architect54
    @Architect54 7 месяцев назад

    You are the best Karl. Thank you so much. Can you please prepare videos on attractors and space syntax... Thanks again

  • @MarcsYoutube
    @MarcsYoutube 2 года назад +1

    Nice, you have my Game of Life component installed. I always wondered, whether anybody even tried it. Now I know!
    Great introductory video, Karl. Châpeau!

    • @KarlSingline
      @KarlSingline  2 года назад +1

      Ah I wondered if you subscribed.. funny thing is, I've written my own GoL script to follow this one and found yours while researching.. like 2 years ago. Ha ha.

    • @MarcsYoutube
      @MarcsYoutube 2 года назад +1

      @@KarlSingline I've been a long time subscriber. ;)

  • @bdeconcept383
    @bdeconcept383 2 года назад +2

    I was looking for that, this is gold! thank you

  • @paco9207
    @paco9207 2 года назад +1

    Thank you for the concise turorial, Karl! To build on what you covered I would like to learn how to access, read and manage list and data tree input to python components. Also, I do not understand the syntax of Rhino common or other libraries yet. While after lots of research I assume it has something to do with classes, to begin with it is dificult to differentiate between methods and instances and how to use them. In contrast to the well documented scriptsyntax, I am lost in the Rhino API. I subscribed in hope for an advanced tutorial.

  • @jonathanhutchinson5649
    @jonathanhutchinson5649 2 года назад +5

    Karl, this is a great video. I still feel that content wise Rhino + Python is light on the ground, especially when it comes to bridging the gap from beginner to being a more autonomous programmer. Things which you cover like script context to bake out the object isn’t really documented so well, and that need to go from GUID to ObjRef. Would you do more pure Rhinocommon for Rhino stuff? Creating in depth commands etc?

  • @jakubwlodarz
    @jakubwlodarz 6 месяцев назад

    That's IT!!! THANK YOU soo MUCH!

  • @yilangliang5208
    @yilangliang5208 Год назад +1

    This is really cool and well introduced :))) TYTY

  • @mendavenda
    @mendavenda 8 месяцев назад

    Wow, Karl. This intro was superb, I’d really like to see more. If you ever create a Udemy course or similar - let us know!

    • @KarlSingline
      @KarlSingline  8 месяцев назад +1

      Very soon!

    • @mendavenda
      @mendavenda 8 месяцев назад

      Glad to hear it! Adding you on LinkedIn, in order to stay in the know!
      Where will you be hosting the course?
      Regards David

  • @BMBijoutiers
    @BMBijoutiers 2 года назад

    Thank's a lot really helpful...and i love Tasmania

  • @ethereal-fortress39
    @ethereal-fortress39 Год назад

    be cool to see how GPT can work with this to do some more complex geometry ..

  • @adebar875
    @adebar875 8 месяцев назад +2

    Great Stuff... Got an Error on Rhino 7 when trying the bake function. It didn't bake anything and when I close Rhino and Grasshopper I got an Error Message saying it couldn't load scriptcontext. Doesn't seem to be an unusual error, you can find some similar posts on different forums but none is clearly soluted.
    Anyway, thanks a lot!

    • @topspap
      @topspap 5 месяцев назад

      Hi, i'm facing the same problem, Nothing is being baked!!. Did you find a solution to it ?

    • @thefractalends7971
      @thefractalends7971 Месяц назад

      @@topspap Add this line of code in the baker() function
      sc.doc = Rhino.RhinoDoc.ActiveDoc
      the whole baker() function is now this:
      def baker():
      for k in range(len(geo)):
      brep = rg.Brep.CreateFromBox(geo[k])
      attr = rd.ObjectAttributes()
      attr.ColorSource = rd.ObjectColorSource.ColorFromObject
      attr.ObjectColor = color[k]
      sc.doc = Rhino.RhinoDoc.ActiveDoc
      sc.doc.Objects.AddBrep(brep,attr)
      I had the same problem, then it worked after I added that line of code in the function. I use the variable color instead of colour, but that was just for preference.

    • @thefractalends7971
      @thefractalends7971 Месяц назад

      import Rhino first

  • @peterpen5415
    @peterpen5415 2 года назад

    Thank you, it''s help me a lot

  • @jonkrusell372
    @jonkrusell372 Год назад

    Super useful!

  • @codedvoxels
    @codedvoxels 2 года назад

    Great intro !

  • @islandersean2213
    @islandersean2213 Год назад

    Any online classes I can sign up to learn grasshopper. Thanks

  • @poulet9560
    @poulet9560 2 года назад +2

    Dear Karl, it is a really useful tutorial. Nevertheless I faced an issue while I was trying to bake as you do it. The code was not crashing but nothing was happening. I manage to get it working by adding 2 simple lines. By looking to your screen, it looks like you have a "live update" of your geometry when you move the attractor point in Rhino. How do you do that? On my side the update is done only when I release the point... Is this linked to a grasshopper setting? Is this can explain why I had to add extra script lines? Thank you in advance for your answer.

    • @KarlSingline
      @KarlSingline  2 года назад

      what time in the video are you talking about

    • @poulet9560
      @poulet9560 2 года назад

      @@KarlSingline around 57:10 for example , when you move the gumball. On my side, the model is changing only when I release the attractor point (gumball), not in real time. Is there a setting somewhere to be selected to get real time update in gh?

    • @KarlSingline
      @KarlSingline  2 года назад

      I don't change any settings outside whats shown in the video. Are you using Rhino 6 or 7, I'm on latest build 7..

    • @poulet9560
      @poulet9560 2 года назад

      @@KarlSingline I am on Rhino 7 as well. Interesting! I will dig a bit more ;-)

    • @KarlSingline
      @KarlSingline  2 года назад

      @@poulet9560 did you make the point via "reference a point"?

  • @elsapaemen1242
    @elsapaemen1242 10 месяцев назад

    50:24 Hi, thanks for thé tutorial, however I keep getting a SyntaxError when trying to append the geometry list. It says: ‘unexpected token ‘geo’. Do you know what the reason is? I did define the geo as an empty list but it doesn’t seem to recognize it…

    • @KarlSingline
      @KarlSingline  9 месяцев назад

      Hmm, hard to say without seeing the code.. are you sure you don't have a typo and the empty list is created before the for loop?

  • @yutakared338
    @yutakared338 Год назад

    hi Karl, great work thank you! Could you let me know why my color of point are black even with the custom preview used? thanks!

  • @user-mu7rc3jk1z
    @user-mu7rc3jk1z 8 месяцев назад

    It was awesome. Thank you so much...

    • @KarlSingline
      @KarlSingline  8 месяцев назад

      I’m working on a new online course for the new python in Rhino 8.

  • @HammerTho
    @HammerTho Год назад

    How to get the exstra line in Grasshopper and put the icon there?

    • @KarlSingline
      @KarlSingline  Год назад

      Not sure exactly what you are asking?

    • @HammerTho
      @HammerTho Год назад

      @@KarlSingline Sorry, my english. You show icon on York pythonobject and as a programicon up top on menu. How do yoy make your own menu and place the icon?

    • @KarlSingline
      @KarlSingline  Год назад +1

      @@HammerTho you can click and drag any 24x24 png onto the python component to give it its own icon

  • @Esiddig
    @Esiddig Год назад

    Hi , I followed your tutorial , but there is something not working

    • @alvarobalderramac
      @alvarobalderramac Год назад

      same here. is it an error saying object has no attrubute 'append'..

    • @daydarasensei12
      @daydarasensei12 Год назад

      @@alvarobalderramac append is native to python so there is no way it is what's causing your bug. did you import all libraries correctly?

  • @daydarasensei12
    @daydarasensei12 Год назад

    I wonder what your definition of "beginner" is tbh lol. I know some python already and still I could barely keep up with you.
    Good work anyway.