#32 User-defined compound nodes

Closed
opened 6 years ago by caryoscelus · 2 comments
There is no content yet.
caryoscelus commented 6 years ago
Owner

Example:

Sine-pulsating circle with pos, min/max radiuses and period as arguments

CirclePR(
  position = position,
  radius = min_radius +
      (max_radius-min_radius) * 0.5 * (1+Sin(Linear(speed=1/period)))
)

This then can be used as string argument to some dynamic node and its custom properties used for variables (with _ stripped). However this might increase complexity, so a better option might be to separate loading such strings as node block and for user-compound node just use the block itself. It will require some other method of binding variables though..

One option would be use Placeholder node which takes variable name as argument and returns {} of appropriate type, but is bound to real argument by user-compound node mechanism.

Example: Sine-pulsating circle with pos, min/max radiuses and period as arguments ``` CirclePR( position = position, radius = min_radius + (max_radius-min_radius) * 0.5 * (1+Sin(Linear(speed=1/period))) ) ``` This then can be used as string argument to some dynamic node and its custom properties used for variables (with _ stripped). However this might increase complexity, so a better option might be to separate loading such strings as node block and for user-compound node just use the block itself. It will require some other method of binding variables though.. One option would be use `Placeholder` node which takes variable name as argument and returns `{}` of appropriate type, but is bound to real argument by user-compound node mechanism.
caryoscelus commented 5 years ago
Owner

Well, this will be implemented directly and straightforwardly with rainynite-linaer. NO MORE WHEEL INVENTING

Well, this will be implemented directly and straightforwardly with rainynite-linaer. NO MORE WHEEL INVENTING
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.