shamansir / rpd

:ok_hand: A Minimal Engine for creating Node-Based Visual Programming User Interfaces
http://shamansir.github.io/rpd
443 stars 48 forks source link

If value is sent to a spinner inlet of anm/number from code, spinner itself is not updated. #54

Open shamansir opened 9 years ago

shamansir commented 9 years ago

Example:

var model = Rpd.Model.start().attachTo(document.body)
                             .renderWith('html', { layout: 'pd' } );

var numberR = new Rpd.Node('anm/number');
var numberG = new Rpd.Node('anm/number');
var numberX = new Rpd.Node('anm/number');
var color = new Rpd.Node('anm/color');
var element = new Rpd.Node('anm/element');

numberR.inlets['spinner'].receive(40); // here!

numberR.outlets['out'].connect(color.inlets['red']);
numberG.outlets['out'].connect(color.inlets['green']);

numberG.inlets['spinner'].receive(90); // or here!

numberX.outlets['out'].connect(element.inlets['x']);
color.outlets['color'].connect(element.inlets['color']);
shamansir commented 7 years ago

Relates to (or duplicates) #398