Submit Search
Upload
アーティストのためのMaya Python入門 資料(11回~13回)
•
0 likes
•
70 views
Tech Art Online
Follow
第11回『for文と型について』 第12回『if文を使ってみよう』 第13回『便利な処理を関数化しよう』
Read less
Read more
Technology
Slideshow view
Report
Share
Slideshow view
Report
Share
1 of 19
Download now
Download to read offline
Recommended
Sense títol 1
Sense títol 1
institut2012
blenderをはじめよう 第1話 『blenderを始めるワケ』
blenderをはじめよう 第1話 『blenderを始めるワケ』
Tech Art Online
Maya Python API 2.0 入門編
Maya Python API 2.0 入門編
Tech Art Online
Raytrace使ってみた!& Raytraceに必要な環境について
Raytrace使ってみた!& Raytraceに必要な環境について
Tech Art Online
リガーのお仕事のお話|『階層構造の設計について』語ってみる
リガーのお仕事のお話|『階層構造の設計について』語ってみる
Tech Art Online
ダイナミックジョイント(nHair, SoftBody)の作り方を解説するよ!
ダイナミックジョイント(nHair, SoftBody)の作り方を解説するよ!
Tech Art Online
UE4 | マテリアル入門 | 3.UV(TEXCOORD)を使ってみよう!
UE4 | マテリアル入門 | 3.UV(TEXCOORD)を使ってみよう!
Tech Art Online
リボンリグの作り方について詳しく解説しちゃいます!
リボンリグの作り方について詳しく解説しちゃいます!
Tech Art Online
Recommended
Sense títol 1
Sense títol 1
institut2012
blenderをはじめよう 第1話 『blenderを始めるワケ』
blenderをはじめよう 第1話 『blenderを始めるワケ』
Tech Art Online
Maya Python API 2.0 入門編
Maya Python API 2.0 入門編
Tech Art Online
Raytrace使ってみた!& Raytraceに必要な環境について
Raytrace使ってみた!& Raytraceに必要な環境について
Tech Art Online
リガーのお仕事のお話|『階層構造の設計について』語ってみる
リガーのお仕事のお話|『階層構造の設計について』語ってみる
Tech Art Online
ダイナミックジョイント(nHair, SoftBody)の作り方を解説するよ!
ダイナミックジョイント(nHair, SoftBody)の作り方を解説するよ!
Tech Art Online
UE4 | マテリアル入門 | 3.UV(TEXCOORD)を使ってみよう!
UE4 | マテリアル入門 | 3.UV(TEXCOORD)を使ってみよう!
Tech Art Online
リボンリグの作り方について詳しく解説しちゃいます!
リボンリグの作り方について詳しく解説しちゃいます!
Tech Art Online
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NTT DATA Technology & Innovation
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
Hiroshi Tomioka
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
More Related Content
Recently uploaded
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NTT DATA Technology & Innovation
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
Hiroshi Tomioka
Recently uploaded
(8)
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
アーティストのためのMaya Python入門 資料(11回~13回)
1.
アーティストのための Maya Python入門 第11回『for文と型について』
2.
for文 2 3つのリンゴを工場で半分に切って出荷します。 for文では、ベルトコンベアのような流れ作業に適します。 りんご1りんご2りんご3 工場 1つ1つ流れる
3.
for文 3 1回目の処理 半分になった りんご1りんご2りんご3 工場 処理が終わるのを待ち、 終わってから向上に入る
4.
for文 4 2回目の処理 半分になった りんご1りんご3 工場 半分になった りんご2 処理が終わるのを待ち、 終わってから向上に入る
5.
for文 5 3回目の処理 半分になった りんご1 工場 半分になった りんご2 半分になった りんご3 工場で処理済!完了!
6.
この処理をPythonにすると 6 apples = [“りんご1”、”りんご2”、”りんご3”] half_apples
= [] for apple in apples: half_apple = “半分になった” + apple half_apples.append(half_apple)
7.
少しだけ基本の型について触れましょう。 7
8.
配列(list)型 8 • apples =
[“りんご1”、”りんご2”、”りんご3”] 文字列型が3つ入っている配列 • half_apples = [] 空の配列 • 様々な型を複数持てる便利なやつ
9.
配列へのアクセス方法 9 • apples =
[“りんご1”、”りんご2”、”りんご3”] • apples[0]で“りんご1”が取れます。 • apples[1]で”りんご2”が取れます。 • apples[2]で”りんご3”が取れます。 簡単でしょ!
10.
文字列(str)型 10 • 例:“りんご” ダブルクォーテーションで囲みます。 • Mayaでの使いどころ 主に使うのは、ノード名の変更です。 ノード名は全て文字列です。 •
Mayaのコマンド例 cmds.rename (“apple”, “half_apple”) ノード名を変更するコマンド
11.
整数(int)型 11 • 例:1 • Mayaでの使いどころ タイムスライダーがわかりやすいです。 24fpsの場合、12.5とか値は使いませんよね。 •
Mayaのコマンド例 cmds.currentTime(2) 現在時間を変更するコマンド
12.
浮動小数点数(float)型 12 • 例:1.0 小数点がある • Mayaでの使いどころ 数値を与える時はほぼfloat型。 translateやrotateなど。 •
Mayaのコマンド例 cmds. setAttr(“node.translateX”) 値を設定するコマンド
13.
真偽値(bool)型 13 • 例:True TrueかFalse、つまり1か0のみ扱える型 • Mayaでの使いどころ visibilityはbool型です。onかoffしかありませんね。 •
Mayaのコマンド例 cmds. setAttr(“node.visibility”, False) 値を設定するコマンドで、Falseで見えなくさせました。
14.
アーティストのための Maya Python入門 第12回『if文を使ってみよう』
15.
if文 15 もし〇〇が、△ △だったら実行する 例1:もし、ノードAの名前とノードBの名前が同じであれば実行 例2:もし、ポリゴンAの頂点数よりも、ポリゴンBの頂点数の方が大きければ実行 例3:もし、ノードAの型とノードBの型が異なれば実行 など。
16.
アーティストのための Maya Python入門 第13回『便利な処理を関数化しよう』
17.
関数 17 関数というのは、以下のような処理をひとまとめにできます。 • ジョイントだけを選択する処理 • ノード名に”_Copy”を追加する処理 •
ポリゴンの情報を出力する処理
18.
Pythonでは、defを使う 18 関数というのは、以下のような処理をひとまとめにできます。 • ジョイントだけを選択する処理 • ノード名に”_Copy”を追加する処理 •
ポリゴンの情報を出力する処理
19.
for文、if文 ,関数(def,return) だけでも覚えよう! あとはなんとかなります! 次回からは実戦でいろんな処理を通じて MayaPythonを習得していきましょう。 19
Download now