PDA

View Full Version : Problem about hand controller in pen contribute holder?


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.

PEN
06-30-2008, 08:25 PM
You have

Local range=[-90,0,90] offset:[0,-10]

You need

Local range=[-90,0,90], offset=[0,-10]

That is all. Notice the difference? Since the code is on the DVD you could just open it and check it against your own.

asiandreams
07-03-2008, 04:49 PM
Ok, Done. Thanks Paul.

Just one question about texturing. Before skinning the character, I need to finish other works first. I'm not using hair and fur to create the hair in my human model because that's too slow whem rendering. I still like to use polygon and texture to the hair. But I tested a whole day, and I couldn't find the best way to make realistic hair for it, even I changed my software from Photoshop to Core Painter, I stil can't paint well :cry: .

I checked many website here, most of than are using Maya, seldom mentioned in Max. Do you know any good ways to do with that? And how to set my brush in photoshop? Then, after hair created, How is it linked with head and flowed in wind ? I thought this question from last year, until now I have time to practise it. If you know how to solve this problem, I really appreciate it.

Thanks Paul

AsiaDreams

PEN
07-03-2008, 06:25 PM
I think this is a question that you should start another post for and put it in the standard Max forum not the scripts forum.

Time to learn how to paint better.

asiandreams
07-03-2008, 06:33 PM
Ok, understand.

I will post in other forum. anyway, Thanks for your reminding.


Best

Asiandreams

CGTalk Moderation
07-03-2008, 06:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.