Cannot make it work setBackgroundImageVisibleOnGround3D.

This topic has been viewed 5087 times and has 0 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: Россия

Cannot make it work setBackgroundImageVisibleOnGround3D.

Post by jrmobile »

Good day to the community.
Would really appreciate if someone could give me a hand.
I spent ages in making my plugin.
Now it works and only one small feature is not working.
I'm loading from plugin background picture and i need it wo be shown on 3d view.

I've found setBackgroundImageVisibleOnGround3D method.

I'm trying to use following code
homeEnvironment = new HomeEnvironment();
homeEnvironment.setBackgroundImageVisibleOnGround3D(true);

No errors fired, but background still invisible in 3d view.

I know, that there is a way to make it with home3DAttributesController, but i have no clue on how to make a code.
I only have Home and userPreferences in my plugin, and i'm really frustrated, that i need to declare viewFactory, contentmanager.

Please give me a hand on that one.
I need to get background visible on 3d view from plugin.

Thanks in advance
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest