Follyx Posted September 17, 2017 Share Posted September 17, 2017 (edited) a bit complicated to explain, but I'm sure its an easy stuff for you. I want to save classes from an fracture setup seperately for further, later use. I use a delete SOP with @class=`$F` as group identifier and delete the unselected. So I can save out in a file sop each class seperately. BUT: in my solution it misses "class0". How I could mange this in the delete sop.... @class=`$F`-1 (btw wont work cause about the syntax. What would be the right syntax for it?) AND how I could solve this whole dilemma in a single attribwrangle? Thanks in advance OF_clustering_v3.hip add: also tried with a wranglenode before the delete: Edited September 17, 2017 by Follyx Quote Link to comment Share on other sites More sharing options...
Sepu Posted September 17, 2017 Share Posted September 17, 2017 (edited) Not in the computer right now but in the delete node should be $F-1 (since is just pretty much an id for prims or pts) (if you havent changed anything before) if not you can re name the @ in wrangle i@class + 1 Edited September 17, 2017 by Sepu Quote Link to comment Share on other sites More sharing options...
Noobini Posted September 17, 2017 Share Posted September 17, 2017 (edited) 5 hours ago, Follyx said: . @class=`$F`-1 (btw wont work cause about the syntax. What would be the right syntax for it?) so isn't it simply @class=`$F-1` ? Edited September 17, 2017 by Noobini 1 Quote Link to comment Share on other sites More sharing options...
ikoon Posted September 18, 2017 Share Posted September 18, 2017 Btw you can also edit the animation range, to start from frame 0. Quote Link to comment Share on other sites More sharing options...
Follyx Posted September 18, 2017 Author Share Posted September 18, 2017 (edited) my worm from my head yesterday is gone... @noobini: Yep thanks. That was I'm looking for; but yesterday... no chance. @ikoon: well, Its not very elegant. Want to solve it via hscript and/or vex. Thanks to both. The once help I'm missing now is the pointwrangle approach. Would be great if someone could support me here as well. Edited September 18, 2017 by Follyx Quote Link to comment Share on other sites More sharing options...
ikoon Posted September 18, 2017 Share Posted September 18, 2017 This code should work, in a primitive wrangle, as in the attached scene: if (i@class != @Frame-1) { removeprim(0,@primnum,1); } class.hiplc Quote Link to comment Share on other sites More sharing options...
Follyx Posted September 18, 2017 Author Share Posted September 18, 2017 Ok, closed for me. Ikoon helped me out from this poor dilemma... 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.