「利用者:Walid shouman/GoogleSummerOfCode/2013/automation」の版間の差分
< 利用者:Walid shouman | GoogleSummerOfCode | 2013
(→The command: fixing the order of opening a the blend then exec the script) |
細 (1版 をインポートしました) |
(相違点なし)
|
2018年6月29日 (金) 06:07時点における最新版
Those are some tricks for automating the work
Valgrind Testing
To automate the valgrind memory test, here's a bit long command line to execute blender in the background, open a specific blend file and execute a script that needs to be memory checked
The command
valgrind --leak-check=full ./bin/blender /media/Data/Activities/gsoc/rubber_duck/Rubber\ Duck2_temp.blend --background --python uv_op.py > log.txt 2>&1
The script
Contents of uv_op.py
import bpy
bpy.ops.mesh.uv_transfer_new(transfer_mode='TRANSFER_BY_INTERPOLATION')
The blend
The blend file must have at least to selected object with the first having at least a single layer of the data to be transfered (ie: single uv layer) that could be automated too ^_^