aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-04-23 10:16:30 +1000
committermorefigs <morefigs@gmail.com>2019-04-23 10:16:30 +1000
commit779a62a3b24e0cb41be1be6ed0beb948a8bab604 (patch)
tree7472a92f88cfc8b7b931ff5981ae9f4215fc932f
parent482a815afa2ca89ffae3c366f508d820420da152 (diff)
downloadpymba-779a62a3b24e0cb41be1be6ed0beb948a8bab604.tar.gz
pymba-779a62a3b24e0cb41be1be6ed0beb948a8bab604.zip
Note on setting feature name as an object attribute
-rw-r--r--examples/camera/set_feature_value.py1
-rw-r--r--examples/interface/set_feature_value.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/camera/set_feature_value.py b/examples/camera/set_feature_value.py
index c02f961..7086d75 100644
--- a/examples/camera/set_feature_value.py
+++ b/examples/camera/set_feature_value.py
@@ -20,6 +20,7 @@ if __name__ == '__main__':
print('"{}" was set to "{}"'.format(feature.name, feature.value))
# alternatively the feature value can be set as an object attribute
+ # note that this doesn't raise an error if the feature name doesn't exist
camera.ExposureAuto = feature.value
camera.close()
diff --git a/examples/interface/set_feature_value.py b/examples/interface/set_feature_value.py
index a9f32da..4eca205 100644
--- a/examples/interface/set_feature_value.py
+++ b/examples/interface/set_feature_value.py
@@ -20,6 +20,7 @@ if __name__ == '__main__':
print('"{}" was set to "{}"'.format(feature.name, feature.value))
# alternatively the feature value can be set as an object attribute
+ # note that this doesn't raise an error if the feature name doesn't exist
interface.InterfacePingPace = 3
interface.close()