#32 User-defined compound nodes

已关闭
caryoscelus7 年之前创建 · 2 条评论
这个人很懒,什么都没留下。
caryoscelus 评论于 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 评论于 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
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。