The Python node in Dynamo has its own quirks unique to Dynamo. In this video, learn about these, including inputting and accessing data from Dynamo, outputting data, commenting out lines, and error handling.
- [Male Instructor] To start, let's have a look…at some of the basics when using the Python node in Dynamo.…Let's go ahead and start a new Dynamo file,…and we can find the Python script node in the library menu…by navigating to Core, Scripting,…and Python Script.…Let's go ahead and place one by clicking onto our workspace.…The first thing you'll notice about the Python script node…is that it appears very much like the list.create node…in that we can increase inputs with the plus symbol…and remove them with the minus symbol.…
We can have as many inputs on the left as we like,…but like many nodes, there is only ever one output…on the right.…Let's go ahead and open up the Python script interface…by double-clicking the node.…This is the default Python script that will appear…when we create a Python script from scratch.…The three lines at the top of the script…are essentially importing Dynamo geometry nodes.…We'll learn more about this in the coming videos.…When importing data into the Python node,…we need to use the word IN.…
Note: This course uses Dynamo 1.3.1 and Revit 2018. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Defining variables
- Making decisions with conditionals
- Controlling flow with operators
- Defining functions
- Working with external libraries in Python
- Accessing the Revit API with Python
Skill Level Beginner
1. Dynamo and Python
2. Python Basics
3. Working with Libraries
4. Revit API
Next steps2m 18s
- 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.