You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python API for iTwin Capture Modeler does not allow combining multiple TargetsExtraction enum values (e.g., AprilTags + QR), even though this functionality is clearly supported in the C++ SDK and the GUI. Internally, the TargetsExtraction values behave like a bitmask-compatible enum, and combining them (e.g., 1 | 2 = 3) results in valid integer values.
However, when trying to set this combined value in Python, the SDK throws a Boost.Python.ArgumentError, because the setter expects a strict single enum instance, not a composite bitmask. This behavior breaks automation workflows where multi-tag extraction is required from code.
Please update the Python bindings for ATSettings.targetsExtraction to support bitmask-style combinations, similar to how adjustmentConstraints works with AdjustmentAndPositioning, so we can use combined tag types in a single aerotriangulation pass.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
The Python API for iTwin Capture Modeler does not allow combining multiple
TargetsExtractionenum values (e.g.,AprilTags+QR), even though this functionality is clearly supported in the C++ SDK and the GUI. Internally, theTargetsExtractionvalues behave like a bitmask-compatible enum, and combining them (e.g.,1 | 2 = 3) results in valid integer values.However, when trying to set this combined value in Python, the SDK throws a
Boost.Python.ArgumentError, because the setter expects a strict single enum instance, not a composite bitmask. This behavior breaks automation workflows where multi-tag extraction is required from code.What I Tried
Please update the Python bindings for ATSettings.targetsExtraction to support bitmask-style combinations, similar to how adjustmentConstraints works with AdjustmentAndPositioning, so we can use combined tag types in a single aerotriangulation pass.
Beta Was this translation helpful? Give feedback.
All reactions