JAMES2503 Posted March 2, 2018 Share Posted March 2, 2018 So I have a few curves (in attached GIF) and they all start at the same time and grow using the carve SOP. I'd like them all to start at different times but from their original positions, (no randomness) just a simple offset. I don't want to do it for each curve manually, is there an expression I can use? Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted March 2, 2018 Share Posted March 2, 2018 (edited) Courtesy of the groom library per_prim_carve_groom_odf.hip https://i.imgur.com/YpPCZuH.gifv Edited March 2, 2018 by vtrvtr mp4s are not nice Quote Link to comment Share on other sites More sharing options...
JAMES2503 Posted March 2, 2018 Author Share Posted March 2, 2018 Thanks for this! It doesn't quite do what I want though as they all start at the same time, I want them to start at different times Cheers Quote Link to comment Share on other sites More sharing options...
Sepu Posted March 2, 2018 Share Posted March 2, 2018 You can use the carve and time offset inside a for each and use the metadata to offset each prim. Here is an example. CarveOffset.hipnc 1 Quote Link to comment Share on other sites More sharing options...
JAMES2503 Posted March 2, 2018 Author Share Posted March 2, 2018 (edited) Brilliant, just what I was looking for! Cheers! Just a quick question, in my carve SOP, I have the expression: @Time/7 - detail(-1, "iteration", 0)/18.5 This generates a nice growth but I want it to have bezier like smooth interpolation between the start and end points, how would I add this to the expression? Edited March 2, 2018 by JAMES2503 wrong expression, oops Quote Link to comment Share on other sites More sharing options...
pangzi2015 Posted March 2, 2018 Share Posted March 2, 2018 Hi , Jim! Actually , there is a function in houdini's include files. it's called adjustPrimLength. so, what you need to do is , in a primtive wrangle, call the function ,like below: the nice thing is , each curve can has a different f@dist attribute , so they can grow differently. Code like this : adjustPrimLength(0, @primnum, @perimeter, @perimeter*@dist); Quote Link to comment Share on other sites More sharing options...
JAMES2503 Posted March 2, 2018 Author Share Posted March 2, 2018 Thank Pangzi, appreciate the input. Got another question (yes I'm newish to Houdini) I need a solution to push intersecting wires away from each other. I have both the curves and polywire setup, I thought of a solution in VOPs but it didn't quite work. See below, cheers guys 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.