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

pythonchallenge2

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

I need study more about Python.
because I solved this by using non-coding way.

Sunday 23 October 2011

pythonchallenge1

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

I know

Not a smart way but i did
import string
for i in range(len(oStr)):
for a in range(len(string.ascii_lowercase)):
if a<=23:
if oStr[i:i+1] == string.ascii_lowercase[a]:
oNewStr = oNewStr[:i]+string.ascii_lowercase[a+2]+oStr[i+1:]
else:
if oStr[i:i+1] == string.ascii_lowercase[a]:
oNewStr = oNewStr[:i]+string.ascii_lowercase[a-24]+oStr[i+1:]


"i hope you didnt translate it by hand. thats what computers are for. doing it in by hand is inefficient and that's why this text is so long. using string.maketrans() is recommended. now apply on the url."

==============12/25===================
here is the way to using string.maketrans()
follow the example, and here is my code.
text="g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
intab = "abcdefghijklmnopqrstuvwxyz" #string.ascii_lowercase,
outtab = "cdefghijklmnopqrstuvwxyzab"#string.ascii_lowercase[2:]+string.ascii_lowercase[:2]
from string import maketrans
trantab = maketrans(intab, outtab)#
print text.translate(trantab);





pythonchallenge0


========================================
'It is Vbscript

oMother = 2
oMulitNumber = 38

function oCount (mot,num)
'for i = 1 to num
oCount = mot^num
'next
end function
answer = oCount (oMother,oMulitNumber)

logmessage answer

Friday 21 October 2011

Term III Week2 Note





12 edge cycle for finger
fit the size with concept
think: fiinger nile
http://goldennumber.net/hand.htm
think how withe
making four fake fingers
group plawn and finger
scale it with concept
make base shape plawn first
slice 4 edge in pawn
then more 4 edges for one finger
delete up to down 3 rows polygon which will connect to finger
finding form of hand
make sure there has geo between two fingers

Saturday 8 October 2011

Term III Week1 Note




Image Plane
  • nurb plan -set scale on x,z depend on pic's dimensions.
  • Align side view and front view
  • freeze transform
  • Duplicate then parent
  • assign image-lamber
camera focal Length 90
x-ray mode
cinlider 16
assing martrial
Making ref Arm
  • adjust pivot by press "Insert" key
  • parent
  • group
  • layer
point constrant
add loop edge
normal
brige
fill hole
addpend
keybord B for soft selection
Shift+. glow selection
Shift+, sub selection
show verts info
to the edga ring and collapes Ctrl+right mouse
Snap
split

Wednesday 28 September 2011

VBScript XSI rename objcet

'input a name that you want to replace
removeName = "cs_em5902_CTRL_Mocap_rig_"
replaceName = ""

'auto select object inculd remoueName
SelectObj "*"+removeName+"*"
dim list
set list = GetValue( "SelectionList" )

'rename MK_set node
if list.count > 0 then
for each maker in list
oldName = maker.Name
maker.Name = Replace(oldName, removeName, replaceName)
LogMessage maker.Name
next
end if

Wednesday 21 September 2011

Python : reName selected objects in mobu

from pyfbsdk import*
lModelList = FBModelList()
FBGetSelectedModels( lModelList )
lcropL= 1
lcropR= 1
#lPatten=""
#lNewName=""
if len( lModelList ) == 0:
    FBMessageBox( "Message", "Nothing selected", "OK", None, None )
else:
    modifiedmodels = []
    for model in lModelList:
        print model.Name[lcropL:-lcropR]
        #model.Name = model.Name[lcropL:]
        #model.Name = model.Name[:-lcropR]
        #model.Name = model.Name.replace( lPatten, lNewName )

Monday 19 September 2011

AnimSchool_week10_iBeam

I really took long time to spline and polish this assignment.
It is hard to make good timing!
Because limit of time I cut out some of pose.
And really Thank you teachers in AnimSchool.

AnimSchool_week6_RunningAndJump

I have done the final polish version.
but I forgot the zone time is off.
so I couldn't make it on time.
just 17 mins :(
but anyway here you go.

AnimSchool_Week3_Digging


Sunday 31 July 2011

Maya Mel


pose-2-shelf
This script will let you do two things that are extremely simple, but insanely useful for animators that are posing and setting a lot of keys on characters, as well as animators who are doing a lot of anim transfer onto characters:
It has a single super simple UI that lets you:
1. Save and label the setAttr (pose) commands for all keyable attributes of all selected nodes to your shelf, with the push of a single button!
2. Save and label your current selection set to the shelf with the push of a single button.
This script uses the "catch" command, so in case you re-name some nodes, the nodes that still exist will still get affected. This script is a solid replacement for recordPose and savePose; it is faster to use, and requires no copy/paste from the script editor. It still prints the commands into the output window, though, just incase this is useful to you. enjoy!

dkAnim.mel is for Importing or Exporting animation channels in Maya. dkAnim has many advantages over Maya's import/export .anim plugin, read dkAnim.txt or the header of dkAnim.mel for more information.

This script was written a long time ago, actually surprised it's still useful.. guess that's either a testament to mel or a hit against Maya for not making this process easier out of the box.

Wednesday 9 March 2011

Animschool pre-meeting

I am so excited after finished this meeting. Teacher there are good people! I could understand 90% when teacher speaking in English.
The Facial expressions is mazing. I can't wait to learn how to do it and animate it.

Looking forward!

Saturday 26 February 2011

Animschool

Oh Yeah Ah!!!
I have applied Animschool!
And I have been chosen into 3D Animation Program.
I also qualify for them "45for450" program. Fantastic, that's will save me a lot of money.

Compare to Animation Mentor School
Animshcool is a new online school, but teacher there come form Blue Sky.
So I have faith with them.
Classes will start from April 6th.
I have to improve my English Listening and speaking quickly.

Sunday 30 January 2011

Export CS bip into FBX

最近做了個實驗
之前曾提過從CS載入BVH的資料再到MoBu裡修改動作後再匯回MAX裡
也許是版更新了
相容性更高
原本的法想是
1.將CS骨架輸出成FBX
2.在FBX裡,將輸的骨架重新命名連結為BVH的骨架
3.修改後再轉存BVH格式
4.再從MAX重新載入修改後的BVH動作即可

為此我還寫了個for bip的T-Pose的script

後來用了MAX2010及Motion Builder2010測試的結果
一點都不用那麼麻煩
只需要在MAX裡將CS輸出成FBX後
再到MoBu裡利用MAX CS Template 做Characterize就可以
修改後的動作,也只要選存CS的骨架為FBX,再匯入MAX就可以
完全不用變動CS的骨架跟名字,也不需要T-pose

以上流程適合處理修改BVH匯入到MAX的動作資料

如果流程是要讓CS使用C3D的資料
那輸出前就還是要讓角色回到T-pose
這時要說,嗯~我陽春的T-pose Script還是有點用


Sunday 23 January 2011

Motion Builder 課程大綱 第二版

過了這麼久忙著其它事就忘了更新課程
先PO一下最後定案的課程版本
因為對方後來希望能從處理mocap資料開始教
所以修改了教授內容

軟體版本 Motion Builder 7.0 or7.5

範例影片:錄影動作>模型套用後的成果>分解步驟(光點資料+基本操作 約2堂課)

Interface 介面認識0.5堂課

  • Lesson 1 :Menu tool bar

Asset browser

Create a cube

Viewer control 視窗操控+快速鍵使用

T移動 R旋轉 S縮放

Shift+Left Click 平移畫面

Ctrl+Shift Left Click 旋轉畫面

Ctrl+Left Click 縮放畫面

Ctrl+a 物件置中

Ctrl+1~4 切面視窗面版

Ctrl+W 樹枝圖

Ctrl+E 透視攝影機

Ctrl+F 前視/後視

Ctrl+R 右視/左視

Ctrl+T 上視/下視

Preferences參數設定 saving/selective redraw/undo/Viewer

Navigator window 介紹

Character Controls

Transport Controls

Layouts 自定面版

Mapping初體驗 約1堂課

  • Lesson 2 :Mapping Optical Motion

Add Favorite path in Asset Browser

Open 2_1_Opt_Data.fbx from Asset Browser

Create an Actor from Asset Browser

Align Actor to Markers

縮放Actro Body對齊肩膀高度

調整手臂的角度

調整腿的角度

Create a Marker set

頭部

胸部

腹部

膝蓋

腳掌

肩膀

手肘

手掌 

Rigid Bodies

頭部

胸部

腹部

大腿

腳掌

上手臂

手掌

Optical_Correction

Eliminating Noise

frame 255

select RSHO 5


Zoom in to see peaks in the optical data.

M-drag the Split line

Select Auto-Bezier

Eliminating Occlusion

frame 296

Eliminating Swapping

Frame427

Finalizing Optical Data

Save file as : ActorMove

實務運用()角色綁定 約1堂課

  • Lesson 3 :Characterize

    • Export Model and Skeleton form 3D Max

    • Open Character File:Surfer_bad

    • Setting up your character in MotionBuilder

    • Create a Controls rig

補充

Using Extract Naming Template-骨架名稱與motion builder不同時

Lesson 3 :Mapping Actor to a Character

Character Settings

Plotting animation

實務運用()進階角色綁定 約1.5堂課

  1. Characters extension

  2. Create Auxiliary/effectors objects

  3. Degrees of freedom

  4. Handles

  5. Constraints 的使用 約1堂課

parent/Child constraint

3 Points constraint

Aim constraint

Position constraint

rotation constraint

relations constraints

RElation

sender operator reciver


two cube


rotation constrion


one sender

one reciver


three ways to disconnect


converder

vector to number


sender>translandtion connect to vector

auto appear number to vector


connect y to y


check the result

-------------------------

offset

Add operator

sender>translation connect to Add operator

set 30 forB


add if cond then A else B


add is greater

connect y to A

set 5 for B


---------------------------------------

Damping operator

new sence

create a cube

copies 5 (ctrl+c then ctrl+v 5 tiems)

ctrl+w

p (parent mode)


add 10 damping operator

Other>Damping(3D)


damping effecter

Number>integer

click all damping factor connect to integer



drag all cube into relation constrion


實務運用()清理Mocap及動作調整 約1.5堂課

  1. Filters的運用 key reducing/ peak Removal/ smooth/ smooth Translation

  2. FCurves的運用 layer/ Time Warp (Ghost) (Tangent)

  3. Key controls

  4. pose的運用 copy/past pose

  5. Motion Trajectories

  6. time and timelines 的運用 takes mark/loop

  7. motion blend window


環境設定0.5堂課

Layouts 進階設定

cameras 設定 camera Settings/ add new Camera/ Camera Switcher

Lights 設定

Shaders 設定

Surfaces 設定


經驗分享and提問 約0.5小時

2009_DemoReel


The title of this project is Kung Fu Hustle same as the movie Kung Fu Hustle

We took a lot of time and effort to finish this action game.
I was an animation lead at that time.
I learn how to use MotionBuilder from Shin-ya-san who came from a perfectional mocap company in Japan.
We did motion capture in Shanghai then modified animations in MotionBuilder.
In the end of this project, We had an Art director Nomura-san who was a lead animator in Metal Gear at Konami.
I've learned a lot of knowledge of animation from him.


2005_DemoReel

This is my 3D art work, Ever Quest II, during 2004~2005

Including modeling, texturing, rigging, and animations.



Monday 3 January 2011

A 2d soft of animation:PAP4

Good News : the PAP4 Now is for Free
Downlad Page
Tutorials

I have been use PAP4
it is nice and simple 2D animation
Suit for concept your animation before you star it in 3D animation