Jump to content
CinnamonMetal

Detail wrangler to primitive ?

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites
Posted (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 by Noobini

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites
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 ?

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

×