Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Everything posted by bonassus

  1. I'm setting up type properties for an hda i'm working on. I would like to set the value of the range fields relative to the value of a different parameter. For instance set a window width parameter based on the wall width parameter. however the range fields in the operator type properties window only allows me to type in integer values. It wont let me type relative reference to the other parameter. Is there a way to do this? thanks
  2. That was it! thank you very much!
  3. I sometimes use the bbox expression to reference the dimensions of an object in a group node to create a primitive group by bounding object. I'm trying to create a preset to speed up the process of creating this kind of group. So i'm trying the operator path parameter set to string. see below image. it seems like this should work the same as the above image but it Chanel expression returns the dimensions of input 0. not the bbox of the object in the path field. can someone enplane how this could work?
  4. reset to origin.

    ok it's an arbitrary vector. thanks for the response. i kind of understand...
  5. reset to origin.

    I'm trying to understand vex creating the x,y,z vectors in the example given here. I don't understand why vector x is calculated by crossing y with {1,2,3}. does any one have an answer that would explain this?
  6. popnet explodes with collisions

    So I didn't have @v on the collision geo. I guess you need that. thanks anyway.
  7. I'm trying to work out a simple debris sim with collisions. But when i add the collision object the particle system explodes with supper high velocities. its a simple rbd sim and then a debris source into a popnet. I create a vdb and geo for collisions. the collision guides look good inside the pop net. I don't understand why the particles don't just fall with gravity and collide with the collision object. I attached a test file. if anyone has some insight about this i would appreciate it. debris_test.hiplc
  8. Something unexpected keeps happening with the geometry spreadsheet. I when I try and display an attribute value in ascending or descending order it's displayed in apparent random order. Is this a problem for anyone else? Is there a way to fix this? Is this a bug? Thanks
  9. I have a constraint network built with a connectadjacentpieces sop from multiple geometries. Each geometry part has a name with its own naming scheme(Apieces_000, Bpieces_000, etc.). every primitive in the constraint network has two points each with a name attribute that matches a packed prim with the same name. some of the primitives have points with names from the same geo. These have similar names. pt0 name=Apieces_000 pt1 name=Apieces_001 some of the primitives have points with names from the different geo And have name attributes with different naming schemes. I want to remove the primitives from the constraint network whose points have name attributes from the same scheme by comparing the first character in the name and removing the prim if they are the same. here's what i have but it'n not working correctly and i don't quite understand the code i've written. string name0; string name1; i[]@primPts = primpoints(0,@primnum); foreach(int i; @primPts){ name0 = point(0,"name",i-1); name1 = point(0,"name",i); if( name0[0] == name1[0] ){ removeprim(0,@ptnum,1); } } allow me to try and explain. primpoints stores both points from each prim in the primPts array. then it loops through the points and assigns the name attribute of each point to a variable. so far so good i think. then it compares the first letter of each sting var and if they are the same i want to remove the prim to which the points belong. however this does not happen. If someone could point out where I've gone wrong or show me a better way to do this. I would be grateful. Thanks
  10. Thank You Dominik, that help tremendously. I was approaching it in a confusing way. Although calling the array index with that operator was ambiguous, according to the error message. see attached image. point(0, "name", primpoint(0, @primnum, 0))[0] i don't understand why though as i assume the point function is returning a string. however your code works like this. string s1 = point(0, "name", primpoint(0, @primnum, 0)); string s2 = point(0, "name", primpoint(0, @primnum, 1)); if(s1[0] == s2[0]){ removeprim(0, @primnum, 1); } cheers con3
  11. I think this post is confusing i've attached some screen grabs and a test file to help explain what i'm trying to do. Thanks remove_constraints_wip1.hiplc
  12. Atom, thanks for the sprintf tip.
  13. How can I access the ptnum of the points coming in though the second input of of a wrangle? I tried to do it with a point expression but i don't know what to put for the atttibute_name. s@name = point(1,"ptnum", @ptnum); I want to concat the second input's point ptnum with the first input's name attribute after a copy to points sop. the copy and transform sop creates a copynum attribute which works to rename copies. but copytopoints doesn't How can i do this? thanks
  14. Thanks for all the responses. Sorry for the confusing question. The answer was obvious after taking a break. I only had to: @id = @ptnum; before the second input and then s@name = concat(s@name,"_copy_"+itoa(+@id)); after the copytopoints.
  15. I've discovered that I can create a subnet with multiple outputs by using multiple output nodes inside the subnet. This is useful how ever i can seem to add labels to the outputs. The default outputs are Output 1 (output1), 2 , 3 ect. the subnet comes with 4 inputs by default with string parameters for the labels. I don't see how these string parameters are hooked up to the inputs or how to add labels for my outputs. does anyone know how to do this? thanks
  16. pcopen with vex v.s. vops

    Oh, I guess that makes sense as it would have to import any data from those inputs right?
  17. Attached are two screen grabs. One is a vops set up that works to convert @N to @v. The other screen grab is my failed attempt to recreate this with vex. what is wrong with the vex? Thanks!
  18. When setting a parameter value with VEXpressions for instance orbitspeed = orbitspeed. Is it possible to set orbitspeed upstream in a pop wrangle? there is no @orbitspeed on the geometry. So I guess this is not an attribute but a parameter value somehow accessible with set variables only in the VEXpression field. Thanks
  19. pcopen with vex v.s. vops

    YES! that is exactly what i did. Thank you very much! also why does sidefx not just default the inputs to the cosponsoring inputs. this seems to make very little sense. maybe they fixed it for h17
  20. Using Point Position Dop with packed primitives

    Yeah, Okay thanks you.
  21. I'm trying to use the Point Position dop in a rbd packed object sim. Similarly to what is shown in this video. https://www.youtube.com/watch?v=mDkc2gU31sA but with packed objects. In the tutorial he uses the expression dopoption($DOPNET,$OBJID,"CopyInfo","copynum") in the Point Number field. This doesn't seem work on a packed primitives. I don't think there are values for the CopyInfo or copynum parameter. I have tried using @ptnum as shown in the attached screen. Is there a way to use the Point Position dop with packed primitives? thanks
  22. I'm found this point expression point("../instance1",instancepoint(),"Cd",0) to access the value of the first index of the Cd vector attribute. However i can't find any reference to this usage of the point expression in the help files. the help shows point(geometry, string attribute_name, int pointnumber) with the attrib string as the second parameter and the point as the third. When there are 4 parameters it appears that 2 and 3 are swapped. this makes sense but is this shown in the help? thanks