asiandreams
06-30-2008, 07:56 PM
Hello, everyone.
I recently met a problem about pen contribute holder. Actually, I started to create the hand controller, but need to write script for it.
Base on Paul Neale's tutorial, I just paste my rough & uncompleted maxscripts here and hope can get help from all of you. It's the script for thumb, I won't write the script for the rest 4 fingers until I can fully apprehend the script writing.
first of all, I study that our each finger consist of 3 nodes, so I just put thumb 01 ~ 03, but our finger has left & right swing, how to do that in script? Paul has made a good start on hand controller format,
This is what he write:
ca=attributes handCon
(
parameters handP rollout:handR
(
finger type:#float ui:(fingerSp,fingerSl)
)
rollout handR "Hand Controls"
(
spinner fingerSp ""
slider fingerSl "Finger" offset:[0,-10]
)
)
custAttributes.add $.modifiers[1] ca
My script is below:
ca=attributes handCon
(
parameters thumbP rollout:thumbR
(
thumb01 type:#float ui:(thumb01Sp,thumb01Sl)
thumb02 type:#float ui:(thumb02Sp,thumb02Sl)
thumb03 type:#float ui:(thumb03Sp,thumb03Sl)
)
rollout thumbR "Hand Controls"
(
Local range=[-90,0,90] offset:[0,-10]
spinner thumb01Sp "" range:range
slider thumb01Sl "Thumb01" range:range offset:offset
spinner thumb02Sp "" range:range
slider thumb02Sl "Thumb02" range:range offset:offset
spinner thumb03Sp "" range:range
slider thumb03Sl "Thumb03" range:range offset:offset
)
)
custAttributes.add $.modifiers[1] ca
here, sp = spinner, sl = slider, what does offset mean ? Left & right swing?
I borrowed a lot of books from libray today, one book is about 3dsMax Script Essentials, but it doesn't teach in depth about Creating the user Interface.
Oh! how to do with that? :sad: Thanks everyone who can point out my mistakes.
I recently met a problem about pen contribute holder. Actually, I started to create the hand controller, but need to write script for it.
Base on Paul Neale's tutorial, I just paste my rough & uncompleted maxscripts here and hope can get help from all of you. It's the script for thumb, I won't write the script for the rest 4 fingers until I can fully apprehend the script writing.
first of all, I study that our each finger consist of 3 nodes, so I just put thumb 01 ~ 03, but our finger has left & right swing, how to do that in script? Paul has made a good start on hand controller format,
This is what he write:
ca=attributes handCon
(
parameters handP rollout:handR
(
finger type:#float ui:(fingerSp,fingerSl)
)
rollout handR "Hand Controls"
(
spinner fingerSp ""
slider fingerSl "Finger" offset:[0,-10]
)
)
custAttributes.add $.modifiers[1] ca
My script is below:
ca=attributes handCon
(
parameters thumbP rollout:thumbR
(
thumb01 type:#float ui:(thumb01Sp,thumb01Sl)
thumb02 type:#float ui:(thumb02Sp,thumb02Sl)
thumb03 type:#float ui:(thumb03Sp,thumb03Sl)
)
rollout thumbR "Hand Controls"
(
Local range=[-90,0,90] offset:[0,-10]
spinner thumb01Sp "" range:range
slider thumb01Sl "Thumb01" range:range offset:offset
spinner thumb02Sp "" range:range
slider thumb02Sl "Thumb02" range:range offset:offset
spinner thumb03Sp "" range:range
slider thumb03Sl "Thumb03" range:range offset:offset
)
)
custAttributes.add $.modifiers[1] ca
here, sp = spinner, sl = slider, what does offset mean ? Left & right swing?
I borrowed a lot of books from libray today, one book is about 3dsMax Script Essentials, but it doesn't teach in depth about Creating the user Interface.
Oh! how to do with that? :sad: Thanks everyone who can point out my mistakes.
