tips mainly for Houdini

Make a list of sub data in a dop object


When you make your own solver, and you want all/the most of fields to resize.

node = hou.pwd().parent()

obj = node.simulation().objects()[0]

subDatas = obj.subData().keys()

exclude = ["Geometry", "Solver", "Visualization", "Forces", "SourceObject", 
    "collisionindex", "pumpindex", "init"]

fieldlist = ''

for data in subDatas:
    if data not in exclude:
        fieldlist += data + ' '

return fieldlist

If you write above on "Extra resize Fields" on Gas Resize Fluid Dynamic to resize fields created by smoke object,
you get:

collision pump temperature density source fuel vel tempdiv collisionvel burn divergence pressure sourceindex confinement sink heat 
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

管理人/副管理人のみ編集できます