#32 User-defined compound nodes

닫힘
caryoscelus7 년 전을 오픈 · 2개의 코멘트
caryoscelus 코멘트됨, 7 년 전
아직 콘텐츠가 없습니다.
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
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.