Python, Excel and Codeblocks

Hi, don’t know if this is what you’re looking for.

  1. You can use both code block or Python to Import Excel File
    see the image below


.

if you want to read specific data cell
you can refer to this post to achieve.
Reading Excel files via Python script

.
2) you can first set many custom functions,
and then create a new Pass Function to filter,
and execute them by the specific name using the If Loop.
.
see the image below.
if the input is “A” or “B”,
then func_A will be called to draw a line, or func_B will be called to draw a circle;
otherwise will draw a point at (0,0,0)
.


.

I think it may be achieved by the similar way for Custom Nodes.

the attachments are the sample file.
ExcelandPassTest.dyn (10.1 KB)

ExcelandPassTest1.xls (24.5 KB)

.

1 Like