Jump to content
  1. General

    1. 26.3k
      posts
    2. 2.1k
      posts
    3. 1.6k
      posts
    4. Marketplace

      For all commercial tools, HDA's etc.

      419
      posts
  2. Houdini

    1. 64.6k
      posts
    2. 48.5k
      posts
    3. 12.2k
      posts
    4. 4.9k
      posts
    5. 15k
      posts
    6. 1k
      posts
    7. 687
      posts
    8. 650
      posts
  3. Coders Corner

    1. 6.3k
      posts
    2. 13.2k
      posts
    3. 4.8k
      posts
  4. Art and Challenges

    1. 3.4k
      posts
    2. 9.8k
      posts
    3. 572
      posts
    4. Effects Challenge Archive

      This is where the cool unofficial challenges live on!

      296
      posts
  5. Systems and Other Applications

    1. Other 3d Packages

      Maya,XSI,Blender,etc

      1.6k
      posts
    2. 1.5k
      posts
    3. Hardware

      Graphics cards etc.

      2.1k
      posts
    4. 414
      posts
  6. od|force

    1. 1.5k
      posts
  • Posts

    • Found it . Thanks to a post on sidefx.com  https://www.sidefx.com/forum/topic/31699/   I'm reposting it here for SEO sake because for some reason I could not find it easily The problem was to enumerate primitive attributes. ########### Linked Question: list of attributes I have an attribute wrangle node that is making new geometry and none of those points inherit the attributes from the point that is being processed when that geometry is being created. I'd like to loop over the attributes on the source geometry and copy them to the new points, but I can't find a vex function to provides a list of attributes or a way to get attributes by something other than its name. I was thinking I could do an import attribute by index (if such a thing existed) until it started failing. But I don't see how to do that either.   The answer is: s[]@pointattribs = detailintrinsic(0,"pointattributes"); s[]@primattribs = detailintrinsic(0,"primitiveattributes"); s[]@vertexattribs = detailintrinsic(0,"vertexattributes"); s[]@detailattribs = detailintrinsic(0,"detailattributes"); ###########   It's not clear how we are supposed to find the strings that are used as the second argument of detailintrisic. The string "primitiveattributes" doesn't exist on sidefx.com, and it's not like there is a BNF to generate those. Anyway. Starting from that list, it is now trivial to implement what I asked initially.
    • maybe this @AntoineSfx Ex useful for someone   en.hipnc osm_game_dev.rar
    • Hello, I want to have a hanging rigid body. By default the pin constraint is created in the center of mass. I want to move the center of mass to a custom position. How can I achieve this? Any help would be appreciated. Thanks.
    • I have imported city data from OpenStreetMaps with Labs OSM import. There are hundreds of primitive attributes in the resulting geometry. How do I get an idea of where the useful data are ?  Like removing the attributes that are empty or mostly empty, and generate a list of the values that are actually used for the attributes that look promising. So far, I'm using :  uniquevals(0,"prim", known_attribute) attribute promote, array of all / min / max But I'm looking for a way to generate this summary programmatically, regardless of the input. So I'm looking for a VEX function that enumerate primitive attributes as a string array. That would be a good starting point.
    • in the wrangle using the minpos function, the second input was not connected to anything and you can use the ad-hoc group just to affect those pts inside - and using the other technique, you did not do anything there. The volumesample function gives you the distance to the closest surface and the gradient gives you the direction to the closest surface and you can use the same ad-hoc group.   
  • Topics

×
×
  • Create New...