Joined: Sep 30, 2014
Post Count: 3
Status:
Offline
How to get catalogID for a plugin furniture?
Hi,
I'm a new developer for Sweet Home 3D. I'd like to create my customized furniture and then pulgin into the Sweet Home 3D furniture list. Now I can create a customized furniture library with FurnitureLibraryEditor and Import it into the Sweet Home 3D furniture list. My question is that how can I get the CatalogID or any category-related information of the imported furniture via the getCatalogID() or getDescription() function or any other functions in the PieceOfFurniture API?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: How to get catalogID for a plugin furniture?
If you have the catalog ID of a piece of furniture added to a home, you can find the matching piece in the furniture catalog, using preferences getFurnitureCatalog method. It contains all the methods needed to list furniture categories and the CatalogPieceOfFurniture instances it contains (with their IDs).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator