Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3759 times and has 2 replies Next Thread
jrmobile
Newbie



Россия
Joined: May 16, 2020
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
How do i reset materials of furniture to default?

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?
[Aug 13, 2020, 7:25:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
Re: How do i reset materials of furniture to default?

Set color to null as said in the Javadoc. You could also have found the answer by studying the source code of HomeFurnitureController class.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Aug 14, 2020, 6:38:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jrmobile
Newbie



Россия
Joined: May 16, 2020
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: How do i reset materials of furniture to default?

Great. Thanks so much.
[Aug 14, 2020, 12:42:58 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved