Is there a way to view / list owned products from past vendors?

I want to know if you can see a list of owned products from a vendor(s) no longer here (Moyra is a good example). Is this possible?

Thank you !

Comments

  • Richard HaseltineRichard Haseltine Posts: 102,699
    edited September 2021

    Taking http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products/start as a starting point, I added a section that got the list of artists and then checked to see if one of them was Moyra. My changes are in blocks with comments starting *** and switched off the requirement for the product to be installed

    /********************************************************************** 	This script is provided as part of the Daz Script Documentation. The	contents of this script, and\or any portion thereof, may only be used	in accordance with the following license: 	Creative Commons Attribution 3.0 Unported (CC BY 3.0)	- http://creativecommons.org/licenses/by/3.0 	To contact Daz 3D or for more information about Daz Script visit the	Daz 3D website: 	- http://www.daz3d.com **********************************************************************/// Source: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/metadata/list_products/start// Define an anonymous function;// serves as our main loop,// limits the scope of variables(function(){ 	// Get the asset manager	var oAssetMgr = App.getAssetMgr();	// If the manager was not found	if( !oAssetMgr ){		// We are done...		return;	} 	// Get the top level asset container for products	var oProductsTop = oAssetMgr.getProducts();	// If we do not have the products container	if( !oProductsTop ){		// We are done...		return;	} 	// Define a variable for whether or not	// we only want installed products	// *** set to false instead of true	var bInstalled = false; 	// Print the container name	print( bInstalled ? "Installed" : "All", oProductsTop.getContainerName(), ":" ); 	// Declare working variables	var oIntermediate, oProduct;	var nProducts; 	// Get the number of intermediate containers; alpha-numeric sorting	var nIntermediates = oProductsTop.getNumChildContainers();	// Iterate over all intermediate containers	for( var i = 0; i < nIntermediates; i += 1 ){		// Get the 'current' intermediate container		oIntermediate = oProductsTop.getChildContainer( i );		// Print the container name		print( "+++++", oIntermediate.getContainerName(), "+++++" ); 		// Get the number of product containers within the intermediate		nProducts = oIntermediate.getNumChildContainers();		// Iterate over all product containers		for( var j = 0; j < nProducts; j += 1 ){			// Get the 'current' product container			oProduct = oIntermediate.getChildContainer( j );						// If we only care about installed products,			// and the 'current' one is not			if( bInstalled && !oProduct.isInstalled ){				// Next!!				continue;			}						// *** Add check to see if the product is Moyra's			// compare product's author to the one we want			// get the list of artists involved			var aArtists = oProduct.artistNames;			// check through for Moyra			// assume no match initially			var bMatch = false;			for ( var n = 0 ; n < aArtists.length ; n++ ) {				if ( aArtists[ n ] == "Moyra" ) {					// Moyra is listed					bMatch = true;				}			}			// No match was found			if ( ! bMatch ) {				continue;			}			// Print the container name			print( oProduct.getContainerName() );		}			} // Finalize the function and invokeinvoke})();

     

    Post edited by Richard Haseltine on
  • Wonderful !  Thank you.  Hopefully this evening I can see what I can do with that.

Sign In or Register to comment.