Jump to content

opdigit equivalent


Recommended Posts

just repost the goal of that on sidefx forum

 

 

 

hi, 

Is there a way to pass an attribut when packing an object, as the "name" can be retrieved to intrinsic_fragmentname. 

One solution that I found is to concat my custom attribut in the name then retrieve it with the opdigit expression. (see the hip) 
But the opdigit expression is really slow to evaluate and with a lot pack primitive is not a viable solution. 

thank, 

papi
 

 

Link to comment
Share on other sites

Your file has incomplete asset definition but you don't need a new SOP to do this. Just use something like this in AttribWrangle

 

string s = primintrinsic(ch("parm"),"fragmentname",@primnum);
s@__foo=s;
string items[] = split(s, "_");
s@first= items[0];
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...