Jump to content

SteveNi

Members
  • Content count

    65
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Everything posted by SteveNi

  1. So I'm making a HDA wich has a color sop inside of it, of wich Im using the group field, thats why I need to acces this field at the upper level (the HDA interface). So to to do this, when building the HDA interface I dragged that field directly from the color sop to the HDA interface, (pic1/3)but when I try to use it from the HDA it throws this error (pic2), wich I guess is referencing this code inside the group's script (pic4). I've never messed around with this kind of stuff, how can I solve this?
  2. I cannot rewrite them because I dont fully remember them and I cannot recover them because they are not in the H15.0 vexpression file. To be honest I don't really immediately need them, but I'd like to port everything I had on the H15.0 installation on my current H15.5, I've done it with otls and I wanted to do it with presets too.
  3. I need to port the nodes presets of my H15.0 installation to the H15.5 one, where are the presets file located in the file systems? I cant find them even without a search using the present name... Sorry for the n00b question. Thanks
  4. Yes I can surely create a file where I store all of my presets and personal settings manually, but the point here is that I used to use H15.0, and I can no longer acces it because they don't give Apprentice licenses anymore for that version (I asked via email to SideFx), and I had like 3 vex presets, 2 of which I no longer fully remember, and they aren't stored in the Vexpression.txt file of my H15.0 installation, so... are they lost?
  5. Thanks! My compute_path_length should be in the point wrangle section of the file but I cant find it. I tried to create several others presets and it seems like Houdini doesn't even touch that file, the file last modification date is still the same indeed. VEXpressions.txt
  6. So I was writing some vex code for a scene Im working on, and while I was debugging the code to correct an issue I placed various printf() functions in the code to check the state of the attributes right after I made some changes to them, and I noticed that if I load an attribute in a variable and print it, modify the attribute, reload it in the same variable and then print the variable out again, it wont show the newer value if the loading&printing process is done in the same wrangle node of where the attribute was modified. Here's an example scene wich exactly recreates my scenario. Am I missing something stupid here? Test_attribute.hipnc
  7. Problem printing attribute value from wrangle node

    Yea you are right, the problem here is that I need to load the attribute for a specific primitive, thats why I used the primitive() function. Guess I'll have to use another method.
  8. Problem printing attribute value from wrangle node

    Oooooh thats true, thanks! EDIT: Is there anyway to load the current status of the attributes, apart from keep track of the changes in variables?? I tried to use geoself, just to be sure, but it doesn't work either.
  9. Handling geometry selection in HDA

    I can finally reply after the maintenance on this site. So yea, if you import the "group type" menu it will work, but not without it. Ill report this to SideFx by also refer to this topic Thanks
  10. Handling geometry selection in HDA

    Please watch this video where I create the OTL from scratch, you can also read the error message. https://vimeo.com/213274634 Password: 101
  11. Handling geometry selection in HDA

    I added group to that script but gives the same error I dont think this matters but Im still working in H15.5...
  12. Handling geometry selection in HDA

    Ops sorry I forgot to upload the .hda file, here it is. casdaf.hdanc
  13. Mushroom Asset (feedback)

    Ehy no problem I just saw in the video you published on your vimeo that you added the bend controls
  14. Mushroom Asset (feedback)

    1)Yes absolutely add resolutions parameters. 2)It looks like you have already added the right parameters for noise in the OTL window. 3)Yes maybe add some fit range nodes, so you can modulate the noise from a simple range to read like (-1,1), but always leave these locks off (see screen shot), this way, if wanted, it will be possible to go over the range predefined. Another thing you could add is a deformer to bend the overall mushroom: As you can see from the image not every mushroom is completely straight.
  15. Handling geometry selection in HDA

    Yea sure! HDA_test.hipnc
  16. Hi Is it possible to modify, from inside a function, a variable that was declared outside that function? For example this code wont work: void functionX() { y = 5; } int y; functionX(); Is there a way to reference that variable inside the function?
  17. VEX - global variables

    Thanks!
  18. Hi. So I have a volume from a pyro sim, wich has various vector fields like temperature, density, rest field..etc How can I acces these vector values in a volume wrangle, so I can do per-voxel suff with them? They are not attributes so I cant simply write @temp, @rest.... Can someone explain me also why those vector fields are represented as primitives in the volume object?
  19. Thanks. We should ask to some volume experts or some dude frome SideFx why you have to write @density = @density
  20. Oh ok, I noticed there was an error in my code....my bad I also have another issue tho.. Always in a volume wrangle, if I want to print out the @resx @resy or @resz attributes, and I use the following code: printf("%s \n", @resx); I just prints out 0, and to get it to work I have to write: (found it ina old post) printf("%s \n", @resx, @density); Can you explain me why?
  21. Hi I need to initialize an attribute in a wrangle wich runs in Detail mode (only once), so I cant simply write " i@status; ", thats why I thought to use a for loop and the setattrib() function, but that code does not create any attribute on the points...why is this happening? Thanks
  22. Issue while creating atribute

    Dont worry man. I simply wanted to see if that was possible to do in Detail mode using those functions Just experimenting
  23. Issue while creating atribute

    Oh yea...I forgot it. Thanks sometimes I cant remember even simple stuff like this. Thanks guys.
  24. Hi I want to randomly select two points from a geo input in a VEX wrangle, so far I have this: int _selectedPts[]; _selectedPts[0] = rand(@numpt); _selectedPts[1] = rand(@numpt); setattrib(geoself(),"point", "Cd", _selectedPts[0], 0, {1,0,0}, "set"); setattrib(geoself(),"point", "Cd", _selectedPts[1], 0, {1,0,0}, "set"); I searched on the VEX docs but every random function I found could only return float numbers, but I need integer numbers. How can I solve this?
  25. Hi I need an array wich stores a range of numbers, starting at zero and ending at @numpt (total amount of points in a geometry). Is there a fast way to do this apart from filling the array in a for loop? Thanks
×