-
I am getting a weird python error. Below is the code in question in an interfacewithpython module anchor, point1, and point2 are defined as input fields. I get all the way to the print line, which works and prints the correct values. Then on the next line, I get "firstVectorPt" is not defined. cent = anchor['node'] |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@dcwhite please advise. What am I doing wrong here |
Beta Was this translation helpful? Give feedback.
-
I tried writing it out as a formal for loop and still get definition errors: v1 = [0,0,0] |
Beta Was this translation helpful? Give feedback.
-
You've used This usability problem will be improved with #2112, when we rewrite the input/output IWP code as actual functions. |
Beta Was this translation helpful? Give feedback.
You've used
v1
andv2
as "output variable names" so they can't be used as intermediate variables or normal variables--IWP will interpret av1 = ...
line as special code to send the value from Python to C++. Change one of the sets of names, either in the script part or the list of output variable names.This usability problem will be improved with #2112, when we rewrite the input/output IWP code as actual functions.