Can't attach variable to output in script

I’m trying the example where you can change the color of the cube by clicking on it. If I want to assign the color of the material to the output variable cube_color it refuses to do it. Apparently the type of color is float(4) and cube_color is smtk_rgba. How can I fix this?

Hi Frank,

There seems to be an issue with the editor not allowing that connection. Until we get that fixed, you could create the connection in the .xml editor.

<connection name="behavior.cube_color">
  <to>base.visual.material.color</to> 
</connection>

A connection tag can be placed at the bottom of the .xml, just above the tag.