大家來去看 Wall-E
一封來自公司福委會的信: 各位同仁大家好: 瓦力(WALL•E)是皮克斯(Pixar)的第九部動畫長片,由海底總動員(Finding Nemo)的導演Andrew Stanton所執導,是一部描述一台打掃機器人「瓦力」的動畫。 ...
一封來自公司福委會的信: 各位同仁大家好: 瓦力(WALL•E)是皮克斯(Pixar)的第九部動畫長片,由海底總動員(Finding Nemo)的導演Andrew Stanton所執導,是一部描述一台打掃機器人「瓦力」的動畫。 ...
同事裏頭(ycliao , kongkongna , naomi , bernald , …),有不少人在玩 Natura, LOMO LC-A, Holga 等非常神奇的玩具。透過這些底片相機,一張張飽合又帶些缺陷的相片……..,光是看它拍出來的照片就很吸引人了,更不用說親手把玩。 ...
Quick Answer: from pymel import * # Is the object.attr a source of a connection? len(object.tx.inputs()) > 0 # Is the object.attr the destination of a connection? len(object.tx.outputs()) > 0 # List an object.attr's source connection, meaning, list the input connection. # This will return a single object.attr. object.tx.inputs() # List an object.attr's destination connection, meaning, list the all output connections: # This could return multiple object.attrs. object.tx.outputs() # In other words, you can just use inputs() and outputs() to get if there is a connection # (source or destination), how many connections there are, and what they are! The following is the quotation of post from mel wiki . ...
無意間,在自由時報電子報看到了這麼一篇罷職求去—-想離開的是「人」,不是「公司」 的文章,一時忍不住反覆看了兩三回。是因為,加諸在我身上的「研發小主管」身份的壓力使然? 還是則是一種「沒有道理的使命感」迫使我對這文章感興趣呢? 一時也回答不出來。 ...
簡答如下: from pymel import * filter( lambda n: 'light' in n.classification(), ls(sl=True, dag=True, leaf=True)) 這邊我使用 pymel 這個 python module 來簡化一些細節。 對照於文章後頭引用的原文(使用 mel 作法,建議先閱讀後,再回過頭來想上頭的這邊兩行程式碼),使用 pymel 不需檢查 getClassification() 的回傳值是不是空字串,透過 python 的 in 這個 operator 就會自動幫你處理掉一些「例外」了,同時,還可能因此少寫一些 if else。寫程式時,如果能少一些判斷式(if … else … elif …, switch case …),就「程式的易閱讀性」這一點來說,就像是少了一些特例的處理,是個比較好也比較推崇的寫法。像是說,日後在做維護時,不需要一個一個 if else 看下去,一個一個了解哪些情況下,要做什麼檢查之類的,因為對於正在維護或是新增功能的 programmer,他會希望花最少力氣就完成這類工作。同時,心理頭要能很有自信,確信不會因為他寫的程式而造成不必要的 bug 出來。少一些 if else,就少一些這層顧慮,因為你等於是替未來接手的 programmer(這個人常常是你自己)幫了個大忙。 ...
真的是被嚇到了,國寶總動員裏 的三個主角直接成了國立故宮博物院網站的首頁 ,真是愈來愈活潑的國家單位呀~~ 我們的故宮,真的是愈來愈年輕了,一點都不老。 首頁上明列了中文 、英文 、日文 、韓文 、法文 、德文 、西班牙文 、俄文 與簡體中文 等多國語言的版本。我猜,會挑選這些語言,多少表示了,故宮的常客就是來自這些文化的人。一時好奇,跑去 wikipedia 的首頁 看看資料量最多的前幾個語言,不少一致的呢。像是英文、德文、法文、日文、西班牙文及俄文。如果說,一個語言代表著一種文化,那上述的這些文化的人,應該有些特有的個性與特質的吧…離題了。
2008/07/01,傻愛成金(Fool’s Gold) 凱特哈德森,是我看這一部片子的主要原因,因為她實在很迷人。 這部片子,有點像是英式浪漫喜劇(休格蘭還有在演這類的電影嗎?),故事就是圍繞在很會耍寶的男主角與美麗且擁有讓人看了會移不開眼神的笑容的女主角身上,然後總得有點什麼事要談的,像是王老五、婚前損友、你愛他他愛我我不愛你、同床異夢什麼之類的。這類的電影公式可能就是這樣的吧。 ...
The quick answer is as below: from pymel import * filter( lambda n: 'light' in n.classification(), ls(sl=True, dag=True, leaf=True)) In pymel’s google group, there are 2 people giving different opinions for this and the following are from their post: take out the ‘sl=True’ by using pymel’s “selected()” function by Ofer Koren from pymel import * filter( lambda n: 'light' in n.classification(), selected(dag=True, leaf=True)) Doing it through the API requires more code but is considerably faster by Dean Edmonds ...