728x90
반응형
안녕하세요.
애니메이터가 들려주는 맥스 스크립트의 스크립팅하는 애님입니다.
오늘은 'actionMan'을 이용하여 대화 상자 만들기를 하겠습니다.
바이패드를 하나 만들고,
대화 상자틀을 하나 만들겠습니다.
여기에 버튼들을 만들어 보겠습니다.
일반 버튼 말고 체크 버튼을 만들겠습니다.
1
2
3
4
5
6
7
8
9
10
11
|
rollout actionMan_Rollout "ActionMan"
(
checkbutton fig_chb "피규어"
checkbutton comHori_chb "좌우"
checkbutton comVert_chb "상하"
checkbutton conRot_chb "회전"
checkbutton conLock_chb "잠금"
checkbutton tra_chb "점선"
checkbutton addKey_chb "키"
)
createdialog actionMan_Rollout
|
cs |
사용자 대화상자를 만들고 바이패드에 연동을 시킬 생각입니다.
이전 시간에 배운 'ActionMan'을 응용하면
https://animaxscript.tistory.com/202
다음과 같이 스크립트를 짤 수 있습니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
rollout actionMan_Rollout "ActionMan"
(
checkbutton fig_chb "피규어"
checkbutton comHori_chb "좌우"
checkbutton comVert_chb "상하"
checkbutton conRot_chb "회전"
checkbutton conLock_chb "잠금"
checkbutton tra_chb "점선"
checkbutton addKey_chb "키"
on fig_chb changed state do
(
actionMan.executeAction 972555510 "40144"
)
on comHori_chb changed state do
(
actionMan.executeAction 972555510 "40019"
)
on comVert_chb changed state do
(
actionMan.executeAction 972555510 "40020"
)
on conRot_chb changed state do
(
actionMan.executeAction 972555510 "40021"
)
on conLock_chb changed state do
(
actionMan.executeAction 972555510 "40185"
)
on tra_chb changed state do
(
actionMan.executeAction 972555510 "40160"
)
on addKey_chb changed state do
(
actionMan.executeAction 972555510 "40015"
)
)
createdialog actionMan_Rollout
|
cs |
연결은 아래 이미지와 같이 연결을 했고 잘 작동하는지 확인해 봅시다.
스크립트 내용은 이미 다 알고 있다고 생각하기 때문에 따로 설명을 드리지는 않겠습니다.
누르면 반응을 합니다.
반응은 잘 하는데 생각했던 대로 반응하지 않습니다.
1 사용자 대화상자의 버튼이 활성화된 것과 실제 바이패드 버튼이 활성화되는 것이 일치하지 않습니다.
2 상하, 좌우, 회전, 잠금 버튼은 개별적으론 'CheckButton'형태이지만 전체적으론 연관이 있습니다.
다음 시간에는 이 부분을 해결하는 방법에 대해서 이야기하도록 하겠습니다.
728x90
반응형
'맥스스크립트 심화' 카테고리의 다른 글
선택한 노드 Controller 변경하기(2) (0) | 2021.04.20 |
---|---|
선택한 노드 Controller 변경하기(1) (3) | 2021.04.19 |
actionMan을 이용한 대화상자(3) (0) | 2021.04.16 |
actionMan을 이용한 대화상자(2) (0) | 2021.04.15 |
RolloutCreator Functions(6) (0) | 2021.04.12 |
RolloutCreator Functions(5) (0) | 2021.04.09 |
RolloutCreator Functions(4) (0) | 2021.04.08 |
RolloutCreator Functions(3) (0) | 2021.04.07 |