Jump to content
Sign in to follow this  
syzmatrix

Create digital asset parameter from attributewrangle

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

Share this post


Link to post
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

 

 

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Tomas is right , have to create the parameter ( Edit parameter interface ) in the wrangle node , in order to acess it , did not read the question correctly

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×