Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5897

Python scripting - function returning single item as tuple

$
0
0

@Helvetosaur wrote:

Odd situation I can't figure out -

I have a function that takes a single multiface brep and tries to get its outer borders, flatten those, make a planar surface from them, extrude the surface and return the extrusion - which should be a single brep. In the screenshots below, you see a breakpoint just before the function returns - you can clearly see that extru is a single brep and that it will be returned.

No problem to there, but when I return to the main function, the return value is a tuple that contains the brep and not a single item (the brep itself)...

Why is my single item getting returned inside a tuple? There must be something stupid in the code, but I can't see it...

Thanks, --Mitch

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5897

Trending Articles