Somthing like that should be possible code and details might vary...
lang=python
import mitk.ioutil
import mitk.core
def predicate_only_visible(node):
return node.visible is True
ds = mitk.core.services.get_data_storage()
image_predicate = mitk.core.ImagePredicate()
visible_predicate = mitk.core.LambdaPredicate(predicate_only_visible)
predicate = image_predicate+visible_predicate # + is like a AndPredicate(pred1,pred2)
ds.get_subset(predicate)
for node in nodes:
node.set_property(name='opacity', value=0.5, context=render_name)
Scope:
This introduces more operation on the datastorage, also the support of predicated to a certain extend and context specific property interaction.