rbesca Posted January 22, 2020 Share Posted January 22, 2020 (edited) hey i'm having trouble sweeping a circle along a line. I'm trying to resample a subsection to save polys but I can't figure out how to join / fuse the lines together for the sweep to work. pic1 is desired result (but not subdivided like crazy everywhere) pic3 is what I get currently. edit2 just found convertline node, it fixes the sweep but I can't use scale ramp anymore scene attached edit: just noticed I hit a random button when taking a screenshot, the start frame range box turned orange and you can't type to search for nodes? not sure what happened there or how to revert it resample_curvesection.hiplc Edited January 22, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 22, 2020 Share Posted January 22, 2020 (edited) because your lineS overlap and the point order are all out of whack when you start fusing...ie, the start/end don't match up in sequence rendering your fuse ineffective. So to not overlap, REMOVE the middle bit, resample that then reinsert that into the orig geo that has been holed out...so there's no overlap....then sort...then bob's your uncle... ps: you don't need to feed it a circle, Sweep gives you that...just use surface shape round tube vu_resample_curvesection_fix.hiplc Edited January 22, 2020 by Noobini 1 Quote Link to comment Share on other sites More sharing options...
rbesca Posted January 22, 2020 Author Share Posted January 22, 2020 (edited) thanks a lot noobini! I thought the fuse would get rid of the overlap since the points should be exactly on top of each other and then get fused into one but since they are different prims that doesnt work? thx for the sweep tip Edited January 22, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 22, 2020 Share Posted January 22, 2020 11 minutes ago, rbesca said: thanks a lot noobini! I thought the fuse would get rid of the overlap since the points should be exactly on top of each other and then get fused into one but since they are different prims that doesnt work? thx for the sweep tip don't think the fuse can cope in all situations. or you could merge/sort...then add...which basically blows away everything and reconstructs the line from sorted points...i'll see if I can do your file using that route Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 22, 2020 Share Posted January 22, 2020 ahh yes...can be done, prolly easier to understand...depends how your brain works I guess.. vu_resample_curvesection_ADD.hiplc 1 Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 23, 2020 Share Posted January 23, 2020 so I got annoyed at the fact that resample doesn't work on an edgegroup....so DIY to the rescue: 1 Quote Link to comment Share on other sites More sharing options...
rbesca Posted January 23, 2020 Author Share Posted January 23, 2020 (edited) very cool! @Noobini if you don't mind giving some advice, i'm currently trying to transform individual points on a curve and then use the distance between points to drive the length of some tubes. I'm using distancealonggeometry to get a dist attribute. how do I reference that in a parameter? is there a better way of doing this? right now I just copy to target points and divide by segments and offset by the disk extrude etc but I'd like to be able to move the disks up or down individually and everything else should follow. but since it's still the same curve I can't just divide by segments anymore to get correct length for the tubes so I need to reference distance between points instead, right? Edited January 23, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 23, 2020 Share Posted January 23, 2020 @dist ? probably would need to see the file to figure it out, is it possible to upload ? or no due to NDA ? Quote Link to comment Share on other sites More sharing options...
rbesca Posted January 23, 2020 Author Share Posted January 23, 2020 (edited) yeah I'm getting a @dist (see updated picture) take a look, no NDA on this, just me trying to figure out how to do procedural modeling Edited January 23, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 23, 2020 Share Posted January 23, 2020 hmmm...I got NFI what I am looking at here...seems there are alot of duplications 1 Quote Link to comment Share on other sites More sharing options...
rbesca Posted January 23, 2020 Author Share Posted January 23, 2020 (edited) haha fair enough, yeah I think I need to use one loop for the wiring. right now I just duplicate the loop for the scatter pairs I want to connect (progress the timeline to see the wires. also press 4 to go to the controller null, things might make slightly more sense then but maybe not lol) but my question is basically how do I reference the dist I create with the node? promote it and read it in with some expression like detail() is used for reading in loop iterations? Edited January 23, 2020 by rbesca Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 23, 2020 Share Posted January 23, 2020 should be either point() or pointattrib() I think look up syntax for these in F1, your attribname should "dist" Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 23, 2020 Share Posted January 23, 2020 as an example...at your distancealonggeometry3...you have point 0 having dist 0.25 from 1, verify in spreadsheet. Now put down a sphere, add a transform, in the transform, in the Y chanel put: point("../distancealonggeometry3",0,"dist",0) and you'll see the sphere being moved up by whatever dist is. 1 Quote Link to comment Share on other sites More sharing options...
rbesca Posted January 23, 2020 Author Share Posted January 23, 2020 (edited) perfect that's the info I was looking for thank you Edited January 25, 2020 by rbesca 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.