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

Get optional output in Python 3

$
0
0

In python 2, if I want to get the optional output, I could use the strongbox in the clr module like:

Idcs = clr.StrongBox[Array[int]]()
dist = rg.Intersect.Intersection.MeshRay(mesh, ray, Idcs)

But in python 3, I get the error:

AttributeError: module 'clr' has no attribute 'StrongBox'

Is there a work around solution to get the optional outputs in Python 3?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4140

Trending Articles