Это видео недоступно.
Сожалеем об этом.
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
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!
Glad you found it helpful.
Please!!! More of these Tutorials! It makes so much fun and you've the talent to teaching it great!!! Thanks for this video.
You're welcome. Glad it helped.
It is a very useful and comprehensive tutorial indeed. Thx Karl. Please, keep up doing tutorials like this(Python for GH).
Thank you for this video, would love to see more on Python for Grasshopper
太棒了,这个视频让我如此开心,非常感谢!
Glad it was helpful
Thank you for this tutorial. This was my first contact with python is gh, and it seems it was a really compressed tutorial.
Glad it was helpful!
Well said! Greetings from Politechnika Wrocławska!
Love the chapter markers, thank you!
Thanks!
You are the best Karl. Thank you so much. Can you please prepare videos on attractors and space syntax... Thanks again
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!
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.
@@KarlSingline I've been a long time subscriber. ;)
I was looking for that, this is gold! thank you
Glad I could help!
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.
Glad it helped
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?
Needless to say too, can’t wait for the next.
Might do some more then..
That's IT!!! THANK YOU soo MUCH!
No problem!!
This is really cool and well introduced :))) TYTY
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!
Very soon!
Glad to hear it! Adding you on LinkedIn, in order to stay in the know!
Where will you be hosting the course?
Regards David
Thank's a lot really helpful...and i love Tasmania
Glad to hear that
be cool to see how GPT can work with this to do some more complex geometry ..
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!
Hi, i'm facing the same problem, Nothing is being baked!!. Did you find a solution to it ?
@@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.
import Rhino first
Thank you, it''s help me a lot
Glad to hear that!
Super useful!
Glad to hear!
Great intro !
Thanks mate
Any online classes I can sign up to learn grasshopper. Thanks
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.
what time in the video are you talking about
@@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?
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..
@@KarlSingline I am on Rhino 7 as well. Interesting! I will dig a bit more ;-)
@@poulet9560 did you make the point via "reference a point"?
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…
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?
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!
Want to send me the code?
It was awesome. Thank you so much...
I’m working on a new online course for the new python in Rhino 8.
How to get the exstra line in Grasshopper and put the icon there?
Not sure exactly what you are asking?
@@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?
@@HammerTho you can click and drag any 24x24 png onto the python component to give it its own icon
Hi , I followed your tutorial , but there is something not working
same here. is it an error saying object has no attrubute 'append'..
@@alvarobalderramac append is native to python so there is no way it is what's causing your bug. did you import all libraries correctly?
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.
Fair enough!
@@KarlSingline 😂