Save groups as .bgeo's ?

   2284   4   0
User Avatar
Member
3 posts
Joined: Feb. 2012
Offline
Hello.

I got fractured geometry with some groups.
How to save each group as separate geometry ?
Manually I add delete node, choose group and delete unselected
and then save geometry on delete node.
But I need to automate this. I tried some foreach node followed by file node
but I'm really lame on this..

F.
User Avatar
Member
512 posts
Joined: July 2009
Offline
if your groups are nicely labeled, you can automate this by using the wedge ROP (check out the tutorial on the sideFX website). This way you could have a delete SOP that isolates one group (delete non-selected) and in the group name you would have something like “objectName_`wedgeSeed`”.
Then you do the same thing for the filename in the ROP output driver and you should be all set.
Let me know if that helps you …
cheers,

Manu
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
3 posts
Joined: Feb. 2012
Offline
hm… I'm not gonna get it working I think…
I set channel for the wedge node to: /obj/block/delete/group - which I think
is the group name that should change.
Because groups are named piece_0, piece_1 etc. I set the name of group
in delete node to: “piece_`chs(”../../../out/wedge1/wedgenum“)` ”.
And in Geometry ROP a set $HIP/a_$WEDGE.bgeo for Output File
and render any frame. And this is not working..
BUT!…

If I set channel in wedge to obj/block/tx (why?), output file in geometry ROP to:
$HIP/`chs(“../../obj/block/delete1/group”)`.bgeo and a frame range 1 to 82 (there's 82 groups), I get the piece_0.bgeo, piece_2.bgeo files with
correct geometry inside - so almost done.. but no
because some files are missing: piece_17, 26, 40 etc.
Attachments:
block_2 - not working
block_3 - partialy working but I don't know why )

I'm sure that I messed up everything

F.

Attachments:
block_3.hipnc (230.6 KB)
block_2.hipnc (230.6 KB)

User Avatar
Member
512 posts
Joined: July 2009
Offline
I fixed your scene, you should change the path of the ROP output driver to see how it works!

Attachments:
WedgeROP_bakePieces.hipnc (111.8 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
3 posts
Joined: Feb. 2012
Offline
Wow…. now I see how it works
Thank you very much

Now I try to do this from scratch…
Thanks again

F.
  • Quick Links