CinnamonMetal Posted June 1, 2018 Share Posted June 1, 2018 How do you bring in variables from a detail wrangler to a primitive wrangler ? Quote Link to comment Share on other sites More sharing options...
kiryha Posted June 1, 2018 Share Posted June 1, 2018 Probably with setdetailattrib. Here is an example of setting point attribute in detail mode. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted June 1, 2018 Author Share Posted June 1, 2018 I assume 1 means the attribute was brought in ? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted June 1, 2018 Author Share Posted June 1, 2018 int sss = setdetailattrib(1,"chngePrim",0,"set"); if(sss%2==0){ removeprim(0,sss,1); } What I'm hoping I can do is, bring in a detail variable into a primitive wrangler then remove the prim for every other primitive based on the detail variable ? At this point it's not working ? Quote Link to comment Share on other sites More sharing options...
Noobini Posted June 1, 2018 Share Posted June 1, 2018 (edited) here's an example (note instead of "even", if you add detail attr of "hello"....or anything not "even"...it will be treated as "odd") detailAttr.hipnc Edited June 1, 2018 by Noobini Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted June 1, 2018 Share Posted June 1, 2018 @variable = detail(0,"variable"); You can use this in vertex, point, prim and detail context. The zero "0" is from witch input you want to pull the attribute from. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted June 1, 2018 Author Share Posted June 1, 2018 15 hours ago, Noobini said: here's an example (note instead of "even", if you add detail attr of "hello"....or anything not "even"...it will be treated as "odd") detailAttr.hipnc I'm getting errors each time I try to access the attribute_expression sop node ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.