Jump to content

bonassus

Members
  • Content count

    98
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

2 Neutral

About bonassus

  • Rank
    Peon

Personal Information

  • Name
    bonassus
  • Location
    Chicago
  1. 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
  2. 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
  3. 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
  4. Atom, thanks for the sprintf tip.
  5. 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.
  6. 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
  7. 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
  8. pcopen with vex v.s. vops

    Oh, I guess that makes sense as it would have to import any data from those inputs right?
  9. 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
  10. 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!
  11. 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
  12. Using Point Position Dop with packed primitives

    Yeah, Okay thanks you.
  13. 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
  14. point expression for vector values

    Ah OK. thank you.
×