Jump to content

CinnamonMetal

Members
  • Content count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About CinnamonMetal

  • Rank
    Peon

Personal Information

  • Name
    Christopher
  1. Color value for each polygon

    remove
  2. Color value for each polygon

    Yes, thank you Although what direction must I need to try first, to get the values as readable (rgb) tuples rather then this; 0.33311760425567627 ?
  3. Color value for each polygon

    curNode = hou.pwd() prim = hou.Prim for thePrim in prim: primColor = prim.floatListAttribValue("Cd") return primColor As close to the above; although it errors ?
  4. Color value for each polygon

    The class hou.polygon doesn't have a color() method. How can get the color for each primitive as a tuple in a mesh (python) ?
  5. Loop over prims and delete

    The slider attribute goes from 0-1 and as you mentioned it only deletes one primitive ? v@slder = chv("rmprimitives"); if(@Cd > @slder){ removeprim(0,@slider,1); } I'm trying to figure a way in Python to which I can select primitives with a range of a hue then export those as an attribute then I can use a ch() or chv() to control how many of those primitives get deleted.
  6. Loop over prims and delete

    @slider is a ch() function which is what I wanted. Although I want to select the purplish / pink primitives; it appears tough as the colors are not typical solid plain colors ?
  7. Loop over prims and delete

    What about vise versa; the purple/pink over the reds ?
  8. Loop over prims and delete

    The color of the primitives are purplish pink so to speak. i@slider = ch("rmprimitives"); if(@Cd.x > 0){ removeprim(0,@slider,1); } When I adjust the @slider which is a ch() only one primitive is deleted ?
  9. Loop over prims and delete

    Thanks Although if there are shades of red, how do you force those shades to be red for VEX; without effecting the shading of the primitives ? I don't know whether that question is dumb but I'll put it out there anyhow
  10. Loop over prims and delete

    Hi, I would like to know what I'm doing wrong. foreach(@primnum == @Cd.g ){ removeprim(0,@ptnum,1); } I want to loop over all primitives and those primitives which are a color of red, simply remove them ?
  11. Parent as Selected

    I wanted the hierarchy selection. inputs() retrieves the the parent node, which I thought was the node above, the PythonSOP. The parent node is the first node in the hierarchy. How do I get the node which in this case is the node one up before the PythonSOP ? As well setInput() doesn't accept index number ?
  12. Parent as Selected

    paren = thisNode.parent() if paren == 0: print(paren) else: paren.setSelected(on,clear_all_selected=True) If the current node has a parent, set the parent as the current selected node; it's unfortunately not working ?
  13. Set Parent node as current node

    Same Question. paren = thisNode.parent() if paren == 0: print("complete") else: paren.setSelected(on,clear_all_selected=True) Error 'on' is not defined ? This is for setting the node which is connected to the current node ?
  14. Clarisse iFX ?

    Thanks for the info; with that, I'll stay with Fusion
  15. Set Parent node as current node

    I have a variable set to hou.pwd(); I want to set the parent node as the active node rather then the current node ? If the current node has a parent, set it to the parent ?
×