I’m trying to detect whether the .toe file I am currently in is running a Commercial version of TouchDesigner or not. I can get the list of licenses using the licenses class, and I can see the type of licenses. However, I have a few issues:
- Amongst the list of licenses (I, for example, have 3 on my machine) how can I detect which one is the one tied to the specific version of TouchDesigner I’m currently running? I can correctly execute the machinecode method, but that should be relative to the machine, not the TD version.
- Even though I can correctly run “type” and a few other methods, I cannot run “isPro” and “isNonCommercial” even though it is suggested to do so on the wiki page. I get the following error:
AttributeError: 'td.License' object has no attribute 'isPro'
Results of run operation resulted in exception.