does anyone know if there’s a way to treat a Geo COMP as a SOP? or really to do anything with a geo comp at all beyond adjusting the xform/pre-xform/copy/display paramaters?
for instance, determining the centroid of a geo comp?
the reason i ask, is that when i import FBX data for models, the different geometry groups are automatically divided into disparate geo comps, within a larger geo comp, and it doesn’t seem possible to do anything to the entire group. because the position of each comp is set using a chop, it’s not even really feasible to go into each geo comp and pull the individual sops out into a new context…
You could add a Null COMP as the parent to the group you want to move. The adjust the position of the Null COMP to translate the entire group. What other operations do you want to do to the group? There is not a simple way to determine the centroid of a Geo COMP yet. What are you attempting to do, maybe a we can help point you in the right direction with a bit more info.
this particular problem came up while building a demo app here…
we’d like to be able to build a system that can import FBX files, and then with a UI, be able to move a camera around between different geometry groups within the fbx.
say for instance we open up a city scene fbx, and we want to highlight certain structures. the camera lookat point and camera distance needs to adjust depending on the position and bounding box size of each geometry group. this could be calculated on the fly if everything was a sop, with bbox expressions, etc.
while not as practical, it would also be cool to be able to perform additional sop operations and deformations on an entire geo comp, like facet, carve, etc.
i totally get it if the internal pipeline just doesn’t work that way, but it would still be cool if there was a “brute force” operator that could retrieve collapsed world-space coordinates from a geo comp.
i can imagine that might be a powerful tool to provide additional effects and procedural geometry on top of complex geo comp chains.
it seems like a work around could simply be to provide an additional fbx import script that doesn’t use CHOPs and Geo COMPs to create a nested network, but instead uses Material SOPs and Merge SOPs to create a self-contained, 1-level-deep network… obviously this would not support imported animations and keyframes! (a reasonable trade-off).
if i had everything as a sop i could perform bbox operations on it. i can’t do this now because the fbx importer sets transforms on the geo comp itself, and not the sop.
lol…while you were writing that, i went off and wrote some tscripts to do some processing for me! i’ll post them anyway, i’m sure someone will find them useful… maybe?
Sorry, I forgot to mention you need to specify a Transform Object to get everything transformed into the same space (I just put down a Geometry COMP). Otherwise the SOPs will just come in untransformed.
This seems unnecessary though… I’ll make the default Transform Object be … in future builds.
Ah, apparently this feature was just added a few weeks ago. Sorry about that (I figured nobody had added features to this node in a while).
I’ll be in the next release, which we are working on getting out ASAP (at least in experimental form).