LoginSignup
28
14

More than 5 years have passed since last update.

TouchDesigner Pythonの外部Moduleを使用する方法

Posted at

TouchDesignerでは, 以下の方法でモジュールの読み込みを行うことによって, サードパーティ製のPythonライブラリを使用することができます.

64bitビルドされたPythonをインストール

Windows x86 xxxxxxxx (32bit)
でなく、
Windows x86-64 xxxxxxxx (64bit)
を選択しインストール

pipコマンドを使って必要なパッケージをインストール

例としてNumPyという数値計算モジュールをインストールしてみます

pip install NumPy

インストール完了です
bandicam 2017-03-03 22-30-39-656.jpg

TouchDesignerを開き, EditメニューのPreferencesをクリック

bandicam 2017-03-04 16-31-50-719.jpg

Generalタブ内のPython 64-bit Module Pathに 64-bit Pythonのsite-packagesフォルダを追加する.

bandicam 2017-03-04 16-32-54-591.jpg

このフォルダは, PythonがインストールされたフォルダのLibフォルダの中にあります

bandicam 2017-03-04 16-33-27-966.jpg

Text DATを作成し, 通常のimportコマンドを使ってモジュールが使用できるかテストしてみます

bandicam 2017-03-04 16-34-26-903.jpg

bandicam 2017-03-04 16-35-30-106.jpg

参照

28
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
14