polysplit sucks!

   4906   8   1
User Avatar
Member
512 posts
Joined: July 2009
Offline
I try to procedurally split a list of polygons that get created by a python script in a previous node. The polysplit node's string parameter field seems to ignore every expression that I type in using backticks ``.
It works fine as long as the node is selected, but as soon as I deselect it and change the incoming primitive list, it reverts back to defaults and deletes the string expression that I typed in there.

Anybody knows a workaround for this problem?

thanks,

Manuel
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
Hey snow, i am not sure about polysplit, but would using edgeDivide perhaps work better? I know polysplit seems to “act” more like a tool (ie if you choose the context sensitive manipulator to try to draw anothe line, it will actually pop in another node

As a tool it is kinda of nice on how it let's you quickly subdivide between polys, but I do wish we could use it procedurally more.
-G
User Avatar
Member
349 posts
Joined: Aug. 2006
Offline
cant you loop through the primative list and use a dividesop's brickier parameters?
Never tried it, it's just a thought, as using a bbox() you can make pretty nice procedural split's using a divide sop. Maybe a similar method can be used for you, but using specific polys instead of bboxes.
User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
The problem with the divide is that it does not work well if the geometry has curvature as it divides your mesh almost as if it was using a marching cubes algorithm.

actually if you are only looking into splitting primitives by connecting edges in between points, you can also use the add SOP. go to the polygons tab, go to "By group' and put in the group string the two points you are trying to connect. You can put that into a forEach (by number and without merge results) to get all your edge divisions

if you are splitting in between edges, then I think you definitely want to go the edgeDivide route as it has a connect points option

Hope it helps!
-G
User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
actually I take it back… the Add seems to create bad primitives… let me try something else
-G
User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
OK…. i vote for a rehash of the polySplit node… I got setup perfectly… however, when I put it through a forEach to do several splits, it keeps chugging and complaining that the SOP did not cook correctly… even though it is actually doing exactly what I want…

It is almost as if the error that is printing out is bogus…

more than anything, I wish I could just specify two points to connect
(i.e. p0 p7). Doing p0-7 will simply add a point in the middle of them. I have to do a very hacky thing when I get the point neighbours and do something like:

p0-1:0 p7-8:0…. it adds the edges but houdini certainly does NOT like that..
-G
User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
found a temporary solution to the problem.. ise p0-1:0.001, then a fuse node to clean the stragglers resulting from this

also, the only time the polySplit node seems to act up is when you have the context sensitive manipulator on. If you are working on a digital asset and have the camera manipulator selected (meaning you are nowhere near the node with the context sensitive manipulator), then you should be OK

Hope all the noise helps
-G
User Avatar
Member
8083 posts
Joined: July 2005
Offline
asnowcappedromance
It works fine as long as the node is selected, but as soon as I deselect it and change the incoming primitive list, it reverts back to defaults and deletes the string expression that I typed in there.

This sounds like you're in the Handle tool in the viewport, and that's what fighting the parameter value. Make sure you click on the “View” (camera icon) in the Scene View pane's left toolbar first before editing the parameter.
User Avatar
Member
512 posts
Joined: July 2009
Offline
awww 7 days away and so many replies!!
thanks guys, I got it working now !!!!

cheers!
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
  • Quick Links