Solved DescID() python doc issue

Hi,
I tried to run the script using the code provided in the python document, but an error was reported.
test.jpg
9577843e-94be-4c54-a931-87cb39e22705-image.png

相信我,可以的!

Hi @chuanzhen,

Thanks for pointing this out. DescID in python doesn't have copy constructor implementetion, which is explicitly stated by the line:

52191e2c-f856-44aa-bc82-6b35324bdb2b-image.png

One should use int or DescLevel instead.

However, the code snippet in the docs is wrong and misleading. The code snippet in the documentation will be updated in our regular internal task planning manner.

Cheers,
Ilia

MAXON SDK Specialist
developers.maxon.net

Hi @chuanzhen,

Thanks for pointing this out. DescID in python doesn't have copy constructor implementetion, which is explicitly stated by the line:

52191e2c-f856-44aa-bc82-6b35324bdb2b-image.png

One should use int or DescLevel instead.

However, the code snippet in the docs is wrong and misleading. The code snippet in the documentation will be updated in our regular internal task planning manner.

Cheers,
Ilia

MAXON SDK Specialist
developers.maxon.net

@i_mazlov Thanks:+1:

相信我,可以的!