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.
Save groups as .bgeo's ?
2284 4 0- freakolot
- Member
- 3 posts
- Joined: Feb. 2012
- Offline
- asnowcappedromance
- 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
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
- freakolot
- 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.
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.
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- freakolot
- Member
- 3 posts
- Joined: Feb. 2012
- Offline
-
- Quick Links