Adding support files to a product

Can anyone point me to how to add support files to a DzProductAssetContainer?

Comments

  • OmnifluxOmniflux Posts: 250

    My testing on 4.14.0.8 is showing that DzProductAssetContainer::getSupportFiles() never returns anything even though the files show up in the Content DB Editor, and support files are also missing in DzProductAssetContainer::getMetadataXML() despite being placed in the XML file when exported.

    Can anyone confirm this is not just something broken on my system by running the sample script?

  • Iused a smaller product so the results would fit

    Executing Script...

    {
    	"store": "DAZ 3D",
    	"token": "74435",
    	"name": "Hand to Hand Combat Animations for Genesis 8",
    	"assets": [
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA !Prepare for Animation.dse",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Duck.duf",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Gets Hit.duf",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Grab and Push.duf",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Punch.duf",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Tackle.duf",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA !Prepare for Animation.dse",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Duck.duf",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Gets Hit.duf",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Grab and Push.duf",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Punch.duf",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Tackle.duf"
    	],
    	"support_files": [
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA !Prepare for Animation.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA !Prepare for Animation.tip.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Duck.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Duck.tip.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Gets Hit.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Gets Hit.tip.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Grab and Push.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Grab and Push.tip.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Punch.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Punch.tip.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Tackle.png",
    		"People/Genesis 8 Female/Animations/Hand to Hand Animations/GHA Genesis 8 Female Tackle.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA !Prepare for Animation.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA !Prepare for Animation.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Duck.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Duck.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Gets Hit.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Gets Hit.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Grab and Push.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Grab and Push.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Punch.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Punch.tip.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Tackle.png",
    		"People/Genesis 8 Male/Animations/Hand to Hand Animations/GHA Genesis 8 Male Tackle.tip.png",
    		"Runtime/Support/DAZ_3D_74435_Hand_to_Hand_Combat_Animations_for_Genesis_8.dsa",
    		"Runtime/Support/DAZ_3D_74435_Hand_to_Hand_Combat_Animations_for_Genesis_8.dsx",
    		"Runtime/Support/DAZ_3D_74435_Hand_to_Hand_Combat_Animations_for_Genesis_8.jpg"
    	]
    }
    Result: 
    Script executed in 0 secs 72 msecs.
  • OmnifluxOmniflux Posts: 250

    Thanks Richard.

    Now I'm really confused. I setup a fresh install on a computer that has never had Studio installed before to test this, DIM, CMS, Studio, a single product, and the sample script, and it does not work there either.

    Executing Script...
    {
    	"store": "DAZ 3D",
    	"token": "63357",
    	"name": "Mirror Rooms",
    	"assets": [
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 01.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 02.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 03.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 04.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 05.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR !Preload Room 06.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR Catwalk.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR Orb Lights.duf",
    		"Environments/SloshWerks/Mirror Rooms/MR Stage Base.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR !Cube Default.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR !Octagon Default.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR !Rectangle Default.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Catwalk Default.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Catwalk Floor Black Shiny.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Catwalk Floor Mirrored.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Floors All Black Rough.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Floors All Black Shiny.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Floors All Mirrored.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Octagon Ceiling Off.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Octagon Ceiling On.duf",
    		"Environments/SloshWerks/Mirror Rooms/Materials/MR Stage Default.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR !Lights Off.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Blue.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Cyan.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Green.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Orange.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Pink.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Purple.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Red.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights White.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Lights Yellow.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Rainbow 01.duf",
    		"Environments/SloshWerks/Mirror Rooms/Shaders/MR Rainbow 02.duf"
    	],
    	"support_files": []
    }
    Result: 
    Script executed in 0 secs 129 msecs.
  • OmnifluxOmniflux Posts: 250

    Richard, would the product you ran the script on happen to be cloud installed?

    I have narrowed this down on my end to working only on cloud installed products...

  • Omniflux said:

    Richard, would the product you ran the script on happen to be cloud installed?

    I have narrowed this down on my end to working only on cloud installed products...

    Yes, it was Connect installed - and it worked on others, including the default product, that were also Connect installed.

Sign In or Register to comment.