@@ -298,9 +298,10 @@ def autoexport_nodes_parameters(self, include_optional=False):
298298 """
299299 for node_name , node in six .iteritems (self .nodes ):
300300 if node_name == "" :
301- continue
301+ continue
302302 for parameter_name , plug in six .iteritems (node .plugs ):
303- if parameter_name in ("nodes_activation" , "selection_changed" ):
303+ if parameter_name in ("nodes_activation" , "selection_changed" ,
304+ "pipeline_steps" , "visible_groups" ):
304305 continue
305306 if (((node_name , parameter_name ) not in self .do_not_export and
306307 ((plug .output and not plug .links_to ) or
@@ -2427,6 +2428,7 @@ def add_pipeline_step(self, step_name, nodes, enabled=True):
24272428 'To get the nodes list in a step:\n '
24282429 'pipeline.get_step_nodes("my_step")' ))
24292430 self .trait ('pipeline_steps' ).expanded = False
2431+ self .trait ('pipeline_steps' ).optional = True
24302432 self .pipeline_steps = Controller ()
24312433 self .pipeline_steps .add_trait (step_name , Bool (nodes = nodes ))
24322434 trait = self .pipeline_steps .trait (step_name )
@@ -2570,6 +2572,7 @@ def define_groups_as_steps(self, exclusive=True):
25702572 if not self .trait ('visible_groups' ):
25712573 # add a trait without a plug
25722574 Controller .add_trait (self , 'visible_groups' , Set ())
2575+ self .trait ('visible_groups' ).optional = True
25732576 plugs = self .pipeline_node .plugs
25742577 for param , trait in six .iteritems (self .user_traits ()):
25752578 plug = plugs .get (param )
0 commit comments