Jump to content

atron

Members
  • Content count

    11
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About atron

  • Rank
    Peon

Personal Information

  • Name
    atron
  • Location
    london

Recent Profile Visitors

467 profile views
  1. Hi there,I'm trying to change the colour of a primitive once a particle collides with it….but i don't want to use an attribute transfer because that gives me a gradient of colour on the primitive and i want to change the colour back after it's been hit and have it be a solid colour. So hit == green (0,1,0)not hit == red(1,0,0)Another problem i'm having is when i don't use an attribute transfer and write it in a python sop(code below) i change all the primitives colours in one go rather than individually where the the particle collides with each primitive.Not sure how to go about this, but here is the file attached.Any help would be much appreciated.CODE FOR HIT COUNTER AND PRIMITIVE CHANGE COLOUR node = hou.pwd() geo = node.geometry() from hou.session import * inputs = node.inputs() # bring in city searcher data pointcolliders = inputs.geometry().points() ship = geo.prims() if hou.frame() == 1: hitCount = 0 for p in pointcolliders: store = p.attribValue(“hittotal”) # get hittotal attribute from the pop solver hitCount += store # hitcount += store (to add number of hits to hou.session) hits = store green = (0.0,1.0,0.0) red = (1.0,0.0,0.0) #change colour of second input so object for s in ship: if hits == 1: s.setAttribValue('Cd', green) else: s.setAttribValue('Cd', red) particles hit each prim.hipnc
  2. hi there, I have a particle system where i have a few particles colliding and dying once hitting the geometry. I want to be able to change the sop geometry's colour once hit by a particle? A
  3. Hi Atom, I can only see copy local variables which is checked. And then the standard topoint,toprimitive,to vertex , set ,mult, add and subtract table. What list do i add the variable to.
  4. hi there, I have a global attribute that i've made in a python node: citySearcherDistanceTrav = geo.addAttrib(hou.attribType.Global, 'citySearcherDistanceTrav', '') i've then set the attribute with some floats totalDistance = self.stepSize * hou.frame() #speed * time = distance travelled dt = str(totalDistance) geo.setGlobalAttribValue('citySearcherDistanceTrav',dt) #see image 1 But i can't seem to access the values in the next node directly below. I tried find global attrib not sure how to access the data in a python node again. A
  5. Hi there, I'm trying to flip the vector once it reaches the boundary of the square and then it carries on moving randomly within the boundary, but i can't seem to get it to do this. I;ve made mirror functions to flip vectors and plus and minus functions but it doesn't seem to work, not sure what i'm doing wrong. A boundaryavoider.hipnc
  6. 2D walker

    Hi there, I'm trying to flip the vector once it reaches the boundary of the square and then it carries on moving randomly within the boundary, but i can't seem to get it to do this. A boundaryavoider.hipnc
  7. 2D walker

    thanks F1, that worked awesomely with the Even-odd rule. I first used a grid sop but then it wasn't working properly so ended up drawing the bounds with a curve sop and it worked.
  8. 2d walker

    Hi there, i'm trying to animate multiple points that move randomly within a boundary. So far i have the random movement done, but i want to be able to get the points to collide with the boundary and carry on moving. Any help would be great. A walker.hipnc
  9. 2D walker

    Hi there, i'm trying to animate multiple points that move randomly within a boundary. So far i have the random movement done, but i want to be able to get the points to collide with the boundary and carry on moving. Any help would be great. A walker.hipnc
  10. so maybe this image will help, sorry i'm pretty new in houdini. The image shows a series of lines with nodes intersecting them. Ideally what i would want to do is group the lines with the nodes that intersect them. The nodes at the moment are just cubes, but there will be 4 different types (which i thought could be colour coded to distinguish them) arrayed across these lines equidistantly. So ultimately i want to group each line so that i can say for example: for line 1 the nodes that occur on it are: nodetype1,nodetype2 for line 2:nodetype1,nodetype2,nodetype3 sorry if this is still unclear
  11. I have a simple line node, with 3 coloured square polygons which sit randomly along the line. I want to be able to store/collect the data for the line so it reads:line0 = red,green,purplegoing forward i will have many lines with a maximum of 4 different types of colours intersecting eachlinee.g.line 1 = red,blueline 2 =green,red,blue,purpleline 3 = green,blueetcit would be good to store this data as a csv file to open in excel any help would be much appreciated LINECDINTERSECTIONS.hipnc
×