maxon.MaxonConvert¶
-
maxon.
MaxonConvert
(*args)¶ Convert all passed objects to a maxon or Python object, depending on the passed type.
Note
Latest arguments determine how the conversion is done by passing a
maxon.CONVERSIONMODE
.import maxon # Returns a maxon.Int32 of value 10 print maxon.MaxonConvert(10) # Returns a int of value 10 print maxon.MaxonConvert(maxon.Int(10)) # Forces a return value to Maxon API type, in this case a maxon.Int32 of value 10 print maxon.MaxonConvert(maxon.Int(10), maxon.CONVERSIONMODE.TOMAXON) # Forces a return value to Python Builtin, in this case a int of value 10 print maxon.MaxonConvert(10, maxon.CONVERSIONMODE.TOBUILTIN)
- Parameters
args (Any) – The object to converts.
- Returns
The object converted
- Return type
Any