Any way to consolidate a compound?

 

Hi there.

So when you have a compound which contains (say...) a 3d model and some textures,
is there any way to consolidate all files that are used by that compound (models, textures,...),
copy them in a subfolder of that compound
and make the filepaths in that compound relative?

I could imagine some Lua script for that, but maybe mighty Axy already has a solution for this?

Cheers and all the best.

Eric.



   EricWest

 
Profile Image
EricWest
  -  

Hello again.

Re-thinking this topic, is there a way in Axy for a Lua script to query Compound's values? For example the Import Source property?
In such a way I could step through the compounds I want to consolidate with that script and use os.execute to copy the files to a a new location.

Another idea would be to parse the actual xcomp (xml) file.
But since Lua, even with the proper libraries, feels a bit clumsy with xml, I'd like to avoid that route... :-)
(Plus, I would first have to reverse-engineer the xml structure of the xcomps... :-))

Cheers.

Eric.


 
Profile Image
buffos
  -  

You can do that with http control, but it's a bit verbose.

For example, looking at the documentation

ComposerFindModulesAction (Returns the list of all modules under the specified root compound whose name matches the pattern.)

and

ComposerEnumPinsAction (Returns the list of the available input pins of the specified module along with their types.)

can help you process all the compounds and pins.

But there are not any commands to create a compound and set the values later.

 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

Can't you do that with the Dependency Manager's Repl. Folder or Repl. Extens.?

Similar to what we discussed here: https://my.aximmetry.com/post/1407-how-to-relink-missing-footage-and-assets


After that, you can even package the whole project into one file using the Packager program:
https://my.aximmetry.com/post/68-how-to-use-aximmetry-packager-software

Warmest regards,

 
Profile Image
EricWest
  -  

Hi Eifert.

Ah! Brilliant! I totally did *not* think about the depency manager / packager.
Thanks for the heads up! :-)

Cheers.

Eric.