How do i reset materials of furniture to default?

This topic has been viewed 5229 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
jrmobile
Posts: 11
Joined: Sat May 16, 2020 9:20 pm
Country: Россия

How do i reset materials of furniture to default?

Post by jrmobile »

Good day everyone.
Hope somebody will give mea clue on that subject.
Anyway thanks in advance.

In my plugin i'm setting a spevific color for furnitureItem.

In particular moment i need to reset it's color to default model settings(that use initial materials) .

When i open use modify furniture dialog, there is Material option. And modify button would let to selet default material.

How do i set it in plugin?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: How do i reset materials of furniture to default?

Post by Puybaret »

Set color to [font=courier new]null[/font] as said in the Javadoc. You could also have found the answer by studying the source code of [font=courier new]HomeFurnitureController[/font] class.
Emmanuel Puybaret, Sweet Home 3D creator
jrmobile
Posts: 11
Joined: Sat May 16, 2020 9:20 pm
Country: Россия

Re: How do i reset materials of furniture to default?

Post by jrmobile »

Great. Thanks so much.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest