2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

似た名前のAttributeをたくさん作って削除する Houdini

Last updated at Posted at 2019-04-25

使用ソフトはHoudini16.5です

配列ではアトリビュートの補間がうまく働かないのと、AttributeCreateSOPノードでSizeが4を超えるアトリビュートを作成しても値が操作出来ず意味がないようなので今回の方法を試してみました。

id_0からid_2まで作成
bandicam 2019-04-25 20-33-09-190.jpg

ノード全体
bandicam 2019-04-25 20-28-31-113.jpg

アトリビュート作成

set_att
string name  = chs("name");
int len = chi("len");
for(int i=0; i<len; ++i)
{
    setpointattrib(0,name+"_"+itoa(i),@ptnum,0.0);
}

bandicam 2019-04-25 20-31-35-528.jpg

アトリビュート消去
bandicam 2019-04-25 20-59-52-040.jpg
正規表現を使って全て削除します

bandicam 2019-04-25 21-02-13-719.jpg
消えました

hipnc
http://www.mediafire.com/file/7ymtyabbyn8i8oz/cre_del_att.hipnc/file

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?