Jump to content

MadMax50

Members
  • Content count

    41
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MadMax50

  • Rank
    Peon

Personal Information

  • Name
    Maze
  • Location
    LA
  1. pyro clustering velocity

    .
  2. align a pyro cache

    Here is a crazy question. I have a simple pyro sim - frozen on one frame. lets call this Original cache Then i take original cache and move it, scale it with multiple transforms. lets call this Modified cache. Is there a way I can get Modified cache to align perfectly back to the original position of the Original cache without having to do a bunch of inverse transforms? I thought the align tool or match axis would help me but I must be doing something wrong. align_pyro_cache_with_itself.hip
  3. learning foreach loop in vex

    @pabcouWow thank you. This is definitely much easier to understand. Thanks!
  4. learning foreach loop in vex

    @mestela Thank you for the reply. That makes sense to me now. I guess the reason for my original question of this thread was to get as many examples as I can to understand for loops in vex. I went through the examples on Joy of Vex talking about loops in relation to the nearpoints function but I think I need to see even more examples of how they work. That is why I thought my randomize color based of @class idea was going to be a fairly basic example but apparently not haha. I already started a master file for all the for loop examples I came across so far. Thank you .
  5. learning foreach loop in vex

    @flcc @pabcou @ColecloughGeorge @ikoon Thank you everyone for the help. I will definitely be reading through those links you sent me. @ColecloughGeorgeThank you for the file. I didn't realize that doing something so simple would be that complicated with a foreach in vex. My follow up question with your code would have to be this: 1. What is the difference between a "for" and a "foreach". Aren't both doing pretty much the same thing ?
  6. learning foreach loop in vex

    @flccThank you for the response. I understand how to create array attributes manually. My issue is that I don't no how to get an existing attribute like @class created by the connectivity sop and store those values in an array. All the documentation I read up on does not explain this even on Mestelas Wiki or Joy of VEX. Perhaps I am thinking about arrays differently than they are supposed to be used? Would love to get any insight. Thanks again.
  7. learning foreach loop in vex

    Hello, I am trying to understand the foreach loop in vex. I want to loop over my boxes and assign a random color to it. So if the structure of the foreach loop is like this: foreach( element; array) { // do things to element } So if I were to apply this to my example of randomizing color on boxes: the "array" should be the class attribute stored in a custom array... and the "element" should be the iteration of each class right ? I'm stuck on storing the class attribute into an array. I know how to make a custom array like this: float myclass[]={1,2,22,3,45}; but how would I store an attribute into an array? If anyone can give me a simple example of how this works. It would be much appreciated. Thank you.
  8. Trunc function- vex

    Hello I am going through "The Joy of Vex" tutorials and I came across a problem. I am on Day 8 where he is talking about noises. http://www.tokeru.com/cgwiki/index.php?title=JoyOfVex8 I am on the last part where he gives the exercises but I can't get it to do what he is explaining. Basically I am trying to make some blocky noise with a custom slider using the Trunc function as he states: Can you make stepped noise? Blocky noise? Hint: When we did quantising in an earlier lesson we took our distance 'd' and trunc'd it to reduce its precision. Here, you'd want to copy @P to a temp vector pos, quantise it, and feed that result to noise (see gif below) I get really close but I don't know how he is controlling it with a slider. My noise looks very faded and disapears after a certain value. I am just trying to ahieve the same effect in the gif I will attach my scene for anyone that wants to take a look Thank you trunc.hip
  9. Mixing Position based on active frame

    @vicvvshAhh makes sense, thank you again!
  10. Mixing Position based on active frame

    @vicvvshhey I have a quick question. In the expression you used to flatten out the Y position you wrote this: @P.y = getbbox_min(0)[1]; What exactly is (0) and [1] doing ? In the getbbox_min help it states: vector getbbox_min(<geometry>geometry, string primgroup) But I am still not sure what it means by the "string primgroup". and it also says thats the context for a vector whereas P.y is a float. A little confusing..
  11. Mixing Position based on active frame

    @vicvvsh Thank you very much this works great!
  12. Hello everyone So I have a small issue in vex. I have a start frame attribute moving progressively across a terrain. Now, I want to mix two states of geometry based on when my start frame happens. The value of the mix will be controlled by a ramp which will progressively mix from one state to another over a given number of frames. I almost have it working but it seems like my point positions are being stretched in one axis and not respecting the positions of the geometry I am working with. I am basically following this great presentation by Keith Kamholz and trying to recreate what he is teaching. You can see the effect I am trying to achieve at 22:32 minutes in I will attach my file if anyone wants to take a look Thank you mixing_based_on_active.hip
  13. RBD constraint custom attribute not working h17.5

    @anim thanks for the reply. I seem to still be getting a constant value of 1 for my stiffness on the constraint geo after constraint properties. I restarted Houdini and still the same issue...Perhaps it's a bug. I am using Houdini 17.5.173 .
  14. Hello, I am working through the new RBD constraint tools in H17.5 , specifically the new options for the "RBD constraint properties" node . I am creating a custom stiffness attribute before the properties node and it seems like my attribute does not update even though I have it set to the "scale by attribute option". It always resets to 1 and not my custom attribute. I am not sure what the issue is here... I will attach my scene file for anyone that wants to take a look. Thank you custom_stiffness_attib_h175.hip
  15. Gradient based of normal

    @RyanThanks man. This works great
×