터치디자이너

[Touch designer] 비율 맞추기 해상도 ratio 설정 - parent 부모값에 맞추기

slowbooktech 2023. 6. 5. 21:18

1.탭 > 컨테이너

2. look > background top ./out

top> noise

color noise > common > me.parent().par.w (resolution click)

parent로 (부모로) 컨테이너 밖의 크기를 받아 파싱하여 높이와 너비  h, w를 받아온다는 뜻

noise > output > rgb noise로만, 모노크롬 끄고! > period 5 change

 

noise, slope comp로 묶은 후  comp multiply > average로 변경

displace top 넣어 전시한 후  level 조정 위해 레벨 오퍼레이터 뽑기

comp와 연결 후 over로 오퍼레이션 설정, 화살표 눌러 순서 조정하여 level이 우선순위로 인풋소스 간주되게끔 조정

컴프를 피드백에 넣어 루프 설정

displace weight 0.01로 설정

 

2. 노이즈

first noise 가장 처음 노이즈에 transform넣기 > abs.Time.seconds*0.01

secondnoise  두번째 노이즈에 transform넣기 > abs.Time.seconds*0.1

 

chop > keyboard in

a버튼 누른채로 피드백에 드래그

비율 설정하는 법

1) 방법

constant chop

channel plus, 2 channels

constant > value에

channel 1 : me.parent().par.w  

channel 2: me.parent().par.h 

2) x의 값에 따른 y값 계산 수식

오퍼레이터 reorder chop > 패널 reorder channel method > reverse

오퍼레이터math chop > 패널 combine channel > divide

constant 에서 resx로 이름 변경후 값을 1로 바꾼 뒤 merge하면

x가 1일때 y값 계산 (1 resx에 0.5625 resy - resolution 해상도)가 정상

 

displace 돌아가서 regit을 copy parameter 후 아래 채널에 붙여넣기

마우스 우클릭 > copy & paste reference  me.par.displaceweightx 수식 나옴

잘라내기 한상태로 보존한 뒤

a누른채로 ratio y 값을 displace에 넣어

me.par.displaceweightx 자리에 op('2_5null_ration')['chan2'] 란 값이 뜰 수 있도록, 

이후 * 이용해 두 값을 곱한게 y channel에 들어가면 비율 완성!