Strings are used in Python as they would be in Grasshopper. As a data structure, learn all the different functions we can use to manipulate strings within Python.
- [Narrator] Strings allow us to display…and store information as letters and words.…A string data type is essentially then text.…It is made up of characters…which form the complete string object.…Let's have a look at creating strings within Python.…Go ahead and place a new Python component onto the canvas…and double click to open it up.…We can create strings by first declaring a variable…and assigning to it a value with either single…or double quotation marks surrounding it.…Let's try this by creating a variable word…and we'll assign to this the string hello,…using double quotation marks.…
We know this is now a string as it's turned up red.…Let's go ahead and print the word variable.…Perfect, so you can see that we've created…our first string object.…A string can be created using single or double…quotation marks but never a combination.…To try this let's update the hello string to have…mismatched quotation marks and hit test,…and you can see we get a syntax error,…specifically the error EOF while scanning,…which basically means the string object is not closed.…
- Python components
- Accessing the Rhino API
- Python programming basics
- Importing modules and libraries
- Grasshopper workflows
- Evaluating surfaces
- Creating and splitting surfaces
- Transforming geometry
- Baking geometry from Python into Rhino
- Adding text objects
- Exporting rendered frames for animation
Skill Level Intermediate
1. Working with Python
2. Python Basics
3. Importing Modules and Libraries
4. Grasshopper Workflows
Next steps3m 53s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.