Jump to content

Create digital asset parameter from attributewrangle


syzmatrix

Recommended Posts

Hello friends: It has been a long time since my last visit to this website, I have some questions about create Digital Asset parameter interface. In a subnetwork context, I create a attribute wrangle, and write some script about primitive attribute in VEXpression. Now I want to put the two attribute(constraint_name and constraint_type)into the parameter interface. But I can not find the two attributes under the attributewrangle node. So how can I do this job? Thank you in advance!

post-3730-0-29604500-1440054754_thumb.jp

post-3730-0-10051500-1440054805_thumb.jp

post-3730-0-25771400-1440054812_thumb.jp

Link to comment
Share on other sites

if i read your question right , you have created a string attribute in the wrangle node, and need to access that through the DA ? 

 

after you create the DA from the subnet , in the parameter interface of the DA create a string attribute called blah

and in your attribute wrangle node

use  chs("../blah"); , blah here is your conName

which will get the string attribute from the parameter interface

 

Hope this helps

 

 

 

Link to comment
Share on other sites

just typing ch("conName") or more precise chs("conName") doesn't create the parameter, to create the parameter you either need to

- do it manually through Edit Parameter Interface on Wrangle node

or

- click the plug icon on the right from the wrangle code, that will create basic parms from all your ch?() vex functions (here is important to call string parms as chs(), if you just use ch() it will create float parm)

 

then you will be able to promote them to asset

  • Like 1
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...