Thursday, 3 May 2012

mobuBoneCreator mel script

The basic function of creating joints base on MotionBuilder order is completed.

How to use??
First  :
source  "oOmobuBoneCreator.mel";
run oOmobuBoneCreator() without select any object, it will creat temp locators named for MotionBuilder.
place locators to fit your model.
For the locators of finger, please using duplicate 3 times. then parent them.
Notice1: Once you add new locators please add a prefix name "P_". and re-parent it.

Second:
To create all joint by selecting all the roots of locator and run the script again.
it will automatically create joint base on locator and do mirror.
if you just want create a row then just select one root of locator.
Notice1: Right now this script only support a straight hierarchy or single joint. it is not support a hierarchy has branch.

maybe I should record a demo video, if I have time.

Thursday, 12 April 2012

FPS第一人稱設影機

前幾週終於有機會"間接"參予使用Virtual cam的專案,又看到另一個同事拿著Iphone控制UDK裡的攝影機,再加上另一個實驗中的專案,也看到有人寫出用Iphone控制MotionBuilder裡的攝影機,實在覺得太酷了。上網查找了一些資料,有個App可以控制Maya裡的攝影機。
http://the3dninja.com/blog/?page_id=1235
自己也想過用Mobur的constrians與Device來達到控制攝機移動,不過能力未及,達到的效果不是很理想。但有另外查到一篇文章
 http://gware.blogspot.com/2010/03/fps-camera-in-motion-builder-using.html
裡頭也提及了“pull”解決數值無法累計的問題。但在mobu的Samples\01_MBTools\02_RelationConstraints\Relation_Pong.fbx裡,是有用另一種簡單的方式達成
目前已能利用鍵盤控制攝影機的左右前後跟上下移動,用滑鼠控制目標點,接下來是軸向問題,可是程度不足,還看不懂別人的文章,也還沒想到自己的解決方式。

Devices中還有個SpaceBall,也許也能拿來控制攝影機,但手上沒硬體。

Friday, 6 April 2012

Class 5: Character Performance

Term 5The class is getting hard! But I can make it!
This time student need to find out an audio clip for assignment.
Teacher gave us three links below:
www.dailywav.com
www.wavcentral.com
www.wavsource.com

The timing of the audio needs between 10~15s
I found those might work.







==========Here comes more audios after I saw the female model===========
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself." [Laurence Fishburne (Morpheus) from Matrix, The]
http://www.dailywav.com/0102/cantbetold.wav
"Don't you ever use that tone of voice with me, missy. Who do you think you're talking to?" [Faye Dunaway (Joan Crawford) from Mommie Dearest]
http://www.dailywav.com/0304/thattone.wav
"You must choose, but choose wisely. Whereas the true Grail will bring you life, the false Grail will take it from you." [Robert Eddison (Grail Knight) from Indiana Jones and the Last Crusade]
http://www.dailywav.com/0804/youmustchoose1.wav
    "Honey, everyone has bad dreams. It's the times we live in, it's hard to be happy. It's hard to feel safe." [Adrienne Barbeau (Ruthie) from Carnivàle]
http://www.dailywav.com/0105/baddreams.wav
"I sit in the subway sometimes, on buses, or the movies, and I look at the people next to me and I think… 'What would you say if I told you I was a witch?'" [Elsa Lanchester (Aunt Queenie Holroyd) from Bell Book And Candle]
http://www.dailywav.com/1006/whatwouldUwitch.wav

Saturday, 24 December 2011

pythonchallenge3

http://www.pythonchallenge.com/pc/def/equality.html

the first ch is small
next three chs is bigger
comiing a smaill one
three bigger one go after
finall there has small one




data=open('c:/Python27/level3.txt')
smallLetter=""
lines=data.readlines()
print 'lines:',len(lines)
i=0
while i < len(lines):
    #print 'i:',i,'len:',len(lines[i])
    a=0
    while a+9< len(lines[i]):
        #print 'lines[',i,'][',a,']:',lines[i][a]
        if lines[i][a].islower() and lines[i][a+1:a+4].isupper()and lines[i][a+4].islower()and lines[i][a+5:a+8].isupper()and lines[i][a+8].islower():
            smallLetter=smallLetter+lines[i][a+4]
            print 'i',i,'a:',a+4
        a =a+1
       
    i=i+1
print 'smallLetter:',smallLetter,len(smallLetter)




============
 b= re.search(r'[^A-Z][A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z][^A-Z]',testline,re.M)

Sunday, 13 November 2011

Wednesday, 26 October 2011

Term III Week3 Note

eye lip 16*8 a litter bit bigger then concept.
deleted half and half
deleted 2 row from top center
cut eye-lip curve base on side view
freez
duplicate up to down
add more edge at connection part
import up lip always ferder up lower lip
adjust the coner of the eye
rotated lower lip

rotated 15 degreed

nubrs curve
creat mouth shape
blend
(12 cyclinder )6 edge for lip porfile
snap to curv
exture
polyexecute face
divitions12
Twist
Taper Curve
smooth
adjust mouth curve