Hello,
I’m trying my hand at python
Is the syntax between dynamo and python nodes different
I get an error message as soon as I remove my # from the 2nd line of the loop
code python:
# Charger les bibliothèques DesignScript et Standard Python
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Les entrées effectuées dans ce noeud sont stockées sous forme de liste dans les variables IN."
Line=IN[0]
res_length=[]
translate_line=[]
# Placer votre code au-dessous de cette ligne
for i in Line:
translate_line.append(i.Translate(2,0,0))
#res_length.append(i.Curve.Length()) My syntax problem
# Affectez la sortie à la variable OUT.
OUT = translate_line,res_length
cordially
christian.stan