From the course: Dynamo for Revit: Python Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Python node basics

The Python node basics

From the course: Dynamo for Revit: Python Scripting

Start my 1-month free trial

The Python node basics

- [Instructor] Let's start by having a look at some of the basics when using the Python node in Dynamo. Go ahead and open a new Dynamo file. We can find the Python script node by navigating to Script, and then Editor section in the Dynamo node menu. Here we'll find Python Script. Clip this to place it onto the workspace. You might also notice the Python Script from String node. This takes a string for the input and doesn't have its own built-in editor, so we won't be using it for this course. 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 the inputs on the left while pressing the Plus symbol, and reduce them by hitting the Minus symbol. We can have as many inputs as we like on the left, but like most nodes, there is only ever one output on the right. Let's go ahead and open up the Python Script Editor by double-clicking the node. This is the default Python script that will appear when we create…

Contents