ES
Este es un componente custom para TouchDesigner. Sirve para exportar tablas en formatos .csv
y .xlsx
.
Antes de utilizar el componente TDTableExport.tox
es necesario instalar las dependencias.
💡 Nota: las dependencias utilizadas son
pandas
,openpyxl
ypathlib
.
-
Ir a la carpeta
Dep
. -
Hacer doble click en el archivo
dep_install.cmd
. Este archivo se encarga de verificar que Python se encuentre bien instalado, actualizado e instala las dependencias. -
Arrastrar el componente
TDTableExport.tox
al proyecto de TouchDesigner que estes trabajando.
Parámetros obligatorios:
-
Table DAT
: tabla que sirve como input. -
Save Target
: destino en donde el archivo se va a crear. -
File Name
: nombre del archivo que se va a crear.
Elegir que tipo de archivo se quiere exportar y pulsar Create File
.
Hoy en día hay mucho virus dando vueltas. Por eso es importante aclarar que hay dentro del archivo .cmd
.
El archivo ejecuta en su interior algo similar a esto:
💡 Nota: digo similar porque las variables
reqs
ytarget
toman como variable la ruta en donde el archivo se encuentra en tu computadora. Esto depende en que lugar de tu computadora estes trabajando.
:: update pip
python -m pip install --user --upgrade pip
:: install from requirements file
py -3.7 -m pip install -r "{reqs}" --target="{target}"
Es posible constatar esto tambien abriendo el archivo .cmd
en Sublime Text o cualquier otro editor de código.
- Agregar instalación automática de las dependencias al inciar TouchDesigner.
El workflow para trabajar con dependencias externas está basado en el tutorial External Python Libraries de MIR Lab.
👋 Si lo usas, si tenés algún tipo de feedback o problema, hacemelo llegar por favor :)
EN
This is a custom component for TouchDesigner. It exports tables in .csv
and xlsx
formats.
Before using the TDTableExport.tox
component it's necessary to install the dependencies.
💡 Note: the dependencies used are
pandas
,openpyxl
andpathlib
.
-
Go to the
Dep
folder. -
Double click on the
dep_install.cmd
file. This file takes care of verifying that Python is properly installed, updated and installs the dependencies. -
Drag the
TDTableExport.tox
component to the TouchDesigner project you are working on.
Required parameters:
-
Table DAT
: table that serves as input. -
Save Target
: destination where the file will be created. -
File Name
: name of the file to be created.
Select the type of file to be exported and click Create File
.
Nowadays there are a lot of malwares around. That's why it's important to clarify what's inside the .cmd
file.
The code inside is something like this:
💡 Note: I say similar because the
reqs
andtarget
variables take as variable the path where the file is located on your computer. This depends on where on your computer you are working.
:: update pip
python -m pip install --user --upgrade pip
:: install from requirements file
py -3.7 -m pip install -r "{reqs}" --target="{target}"
It's possible to check this also by opening the .cmd
file in Sublime Text or any other code editor.
- Add automatic installation of dependencies when starting TouchDesigner.
The workflow for working with external dependencies is based on the External Python Libraries tutorial from MIR Lab.
👋 If you use it or if you have any feedback or problem, please let me know :)
🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶🧶