Hi, I’ve recently been learning Dynamo and when I get to working with Python Scripts I run into a lot of questions. I couldnt find similar questions in the community so here they go:
In a Python Script node, is it possible to define a custom Python Class, populate it and pass it around as an argument? I would be looking to do something like this:
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
If this cannot be done, can I create my own classes in a separate python file and then import it in my Python scripts? How can I go about doing this?
Thank you for your help