string pattern VEX MATCH function from array of strings(found from other thread)

   2554   0   1
User Avatar
Member
65 posts
Joined: Nov. 2014
Offline
is there any way to match a string attribute from another strings pattern, not by entering manually but from a created array of strings or another attribute pattern,
its unshared edges pieces prim names
and I generated a string array which has 3 unique names out of them
after that I tried to use like this
string loop[] =  detail(0,'split_names'); //created array of unique strings from unshared names
for(int i=0;i<len(loop);i++ ){
string name = loop[i];
if(match(name,s@name)==1){ //here I experimented multiple formatting like match(`name`*,s@name) match("`name`*",s@name) not worked
i@choosen=1;
}
} 
I think pattern entered is only manually entered patterns as of now ?
or do we have any other functions those can match patterns from an array of strings or other attributes
string loop[] =  detail(0,'split_names');
for(int i=0; i<len(loop);i++ ){
string name = loop[i];
if(match(sprintf('%s*',name), s@name)==1){
i@choosen=1;
}
//printf('%s\n',name);
} 
found soultion form this thread. https://www.sidefx.com/forum/topic/53141/ [www.sidefx.com]
Edited by K Pavan - March 12, 2021 14:33:01
Houdini Fx Artist (Build)
  • Quick Links