How can I load all my object level geometry in SOP level?

   3480   5   1
User Avatar
Member
70 posts
Joined: March 2016
Offline
I have made lasers to create a virtual lasershow, everything works great, but the lasers are going through the objects, so with a Ray SOP I have to stop the laserbeam as soon as it hits something.
But how can I get all the objects into my SOP level without manually having to select and load them?
https://www.youtube.com/@Klonkel
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
object merge SOP
you can merge in multiple objects and use wild cards etc
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
70 posts
Joined: March 2016
Offline
ah thanks!

Is there also a possibility to make the object merge regonise new geometry in the Objectlevel and then automatically import it in there aswell? Because I'll be placing atleast 8 lasers on the ‘'Mainstage’' and if I then add an object on object level, I'll have to update those 8 lasers by hand each time I add something
https://www.youtube.com/@Klonkel
User Avatar
Member
8554 posts
Joined: July 2007
Offline
as arctor mentioned it accepts wildcards and patterns, so yes, any geometry that matches the pattern will be imported automatically
see following for a few examples:
http://forums.odforce.net/topic/25194-fbx-animation-import-as-copy-reference/?do=findComment&comment=146845 [forums.odforce.net]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Yes wild cards work in Object Merge SOPs but I still like bundles for this. I like to use the opglob hscript command (and it's python equivalent if you wish) and clearly defined bundles to expand object list strings. Easily supported in scripts and automation.

See the attached example file (with Note) for fetching objects via a regular bundle, smart bundle with wild card and a third Object Merge SOP using a wild card.

Attachments:
objmerge_bundles_wildcards.hip (266.2 KB)

There's at least one school like the old school!
User Avatar
Member
8554 posts
Joined: July 2007
Offline
if you want to use bundles you can just put:
@my_geo into the Object# parm, no need for `run(“opglob @my_geo”)`

I would be cautious with bundles though as they live on the scene level and not on the asset/node, so if you copy your setup or save as Digital Asset and use in another scene, the bundle will not be copied/saved with it. So unless you create bundle with the desired name and content in every scene, the production use of Bundles is limited and I would avoid them like Takes, I mean plague.
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links