ifm / nexxT

Hybrid python/c++ framework for developing computer vision algorithms and more.
Apache License 2.0
6 stars 1 forks source link

Port-dependent properties defined in onInit() are not working as expected. #40

Closed cwiede closed 2 years ago

cwiede commented 2 years ago

As an example, a filter might decide to define properties dependent on its dynamicInputPorts in onInit():

pc = self.propertyCollection()
ports = [p.name() for p in self.getDynamicOutputPorts()]
pc.defineProperty("prop", "default", options=dict(enum=["default"] + ports))

The code above will