Layer_Duplicate::Layer_Duplicate():
Layer_Composite(1.0,Color::BLEND_COMPOSITE)
{
+ LinkableValueNode* index_value_node = ValueNode_Duplicate::create(int(3));
+ connect_dynamic_param("index", index_value_node);
}
bool
{
}
-ValueNode_Duplicate::ValueNode_Duplicate(const ValueNode::Handle &x):
- LinkableValueNode(x->get_type())
+ValueNode_Duplicate::ValueNode_Duplicate(const ValueBase &x):
+ LinkableValueNode(x.get_type())
{
- set_link("from", ValueNode_Const::create(int(0)));
- set_link("to", ValueNode_Const::create(int(3)));
+ set_link("from", ValueNode_Const::create(int(1)));
+ set_link("to", ValueNode_Const::create(x.get(int())));
set_link("step", ValueNode_Const::create(int(1)));
+ index = 1;
}
ValueNode_Duplicate*
ValueNode_Duplicate::create(const ValueBase &x)
{
- return new ValueNode_Duplicate(ValueNode_Const::create(x));
+ return new ValueNode_Duplicate(x);
}
LinkableValueNode*
typedef etl::handle<const ValueNode_Duplicate> ConstHandle;
ValueNode_Duplicate(const ValueBase::Type &x);
- ValueNode_Duplicate(const ValueNode::Handle &x);
+ ValueNode_Duplicate(const ValueBase &x);
virtual ValueBase operator()(Time t)const;
void reset_index(Time t)const;