#32 User-defined compound nodes

已關閉
caryoscelus7 年之前創建 · 2 條評論
尚未有任何內容
caryoscelus commented 6 年之前
所有者

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 年之前
所有者

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.
正在加載...
取消
保存
尚未有任何內容