Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

使用ソフトは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

アトリビュート作成
VEX: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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした