Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 01/06/2026 in Posts

  1. This is the Feedback loop I was talking about: If you sort the prims by increasing rotate attribute, you can pack them tight against each others like this, by repeatedly Ray SOP'ing the latest prims against the prims already in place, and translating by the minimal distance This is an approximation to keep the Feedback look simple, there are a few intersections, but it's acceptable. If you want to pack exactly, you would have to ray SOP the points of the prims that are already in place against the candidate primitive, and handle the possible problematic cases, which I'm sure exist If the candidate book is taller than the rightmost book that's already in place, it will not lean against the top right corner of the rightmost book,there is some slight collision. If the book is shorter however, this is always exact. book_shelf.hipnc
    2 points
  2. Hey . Anybody managed to get the Camera projection to work with Solaris and Karma shader? i cant find enough information online about the topic
    1 point
  3. Found it, the magic bullet was multiParmInstances and insertMultiParmInstance p = obj.parm('folders') instances = p.multiParmInstances() for i in range(9): num_instances = p.evalAsInt() p.insertMultiParmInstance(num_instances) Adds 9 new entries to multiparm block. If you use the naming scheme on the parms like value_# each parm name will increment and you can set values on them like normal. obj.parm('value_'+str(i)).set(yourval) Or something similar. Cheers, -Johan
    1 point
  4. General way is to use Python as Menu script: from itertools import chain node = hou.pwd() geo = node.geometry() attribs = [a.name() for a in geo.pointAttribs()] return list(chain(*zip(attribs, attribs))) attributes_menu.hipnc It is possible to avoid it in many cases. When you promote parameter it will usually pick the menu script (if it exist) from the node. It is not necessary to have such menu on the target node, as you may promote parameter from a different node (example).
    1 point
  5. Did some more searching and i found an older topic here that had what i needed - Setting the list to Multiple Selection Menu instead of Single i could make a list of the attributes i didnt want with the following vex-code: s[]@pointattribs = detailintrinsic(0,"pointattributes"); string attriblist = chs("../attribtrans"); //Multiple Selection Menu string alist[] = split(attriblist); foreach(string name; alist){ removevalue(@pointattribs,name); }
    1 point
×
×
  • Create New...