We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.

Using Composite Properties to Parameterize a Node

Comments

2 comments

  • Avatar
    Michael Slowey

    Hi Adrian,

     

    I am trying to replicate this, I have cut and paste the code into my graph. However, I am getting 1/Not Defined/No Selection.

     

    When creating the parameters is there something other than creating them that I need to do?

    0
    Comment actions Permalink
  • Avatar
    Adrian Williams

    Hi Mick,

     

    I just imported the example data flow and executed on the current v.3.5.1 system and it produced the expected results:

    Did you recreate the property values on the node inside the Composite node and add the run time property values into those properties? Unlike with the textual substitution approach described in the response to your other post today, the node.properties... approach does not provide any 'broadcasting' of node values to the nodes within the scope of the Composite node, so each node that needs to access a property value needs to also have the property defined on it and the run time property value set to a unique value which corresponds to the attribute used in your Python code. You may find the textual substitution method is easier to use. 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.