Converting matching objects to instances?

I've tried searching for how to convert matching objects to instances automatically, but my searches have either been too specific to find anything or have come up with Instances to Objects, which while useful in its own right, is the wrong way around for what I want.

For example, there's a shopfront product I'd like to be able to use, but the large number of identical props in the preload version of the scene is eating up my limited VRAM. I'd like to be able to quickly select one of those props as the master, then have all matching models replaced by instances (not particularly difficult to do by hand, but time consuming). Is there an easy way to do this, or am I going to have to repopulate the scene by hand?

Comments

  • I don't think there is a tool to do that, it certainly isn't built in to DS. I should think it could be scripted - select a bunch of objects and repalce most of them with instances of the primary selection.

  • Matt_CastleMatt_Castle Posts: 2,625

    That's more or less what I was expecting. I haven't learnt DazScript yet, but I've worked with enough scripting in the past that a case of "create some instances and copy the parenting/locations of these items to them" seemed pretty fundamentally do-able.

    I suppose another reason I need to get around to learning scripting in DS...

  • WendyLuvsCatzWendyLuvsCatz Posts: 38,415
    edited January 2020

    maybe ask @Totte or @RiverSoftArt

    Post edited by WendyLuvsCatz on
  • TotteTotte Posts: 14,033

    Hi!
    And Thanks Wendy!
    I don't have such a script, yet. The problem is "matching" as everything must match, pose, materials, morphs etc, or it will look different, but many a good companion to Instances To Objects, and Objects to Instances. I add it to my todo list.

  • Anything happen with this?  My idea is you select the first item, then select a bunch of other items and it replaces the other items with instances of the first, retaining the position and orientation of the other item.  That would be easier than trying to do a match on all properties.

    e.g. use case right now I imported a wardrobe with about 20 drawers I made in Sketchup - each drawer has a handle.  I imported fbx so I basically got one mesh per drawer.  The drawers are identical (except position).  It would be nice to select them all and "convert to instances", or something.

Sign In or Register to comment.