broz | A simple , frameless browser for screenshots | Dektop Application library
kandi X-RAY | broz Summary
kandi X-RAY | broz Summary
a simple, frameless browser for screenshots. $ npx broz antfu.me.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of broz
broz Key Features
broz Examples and Code Snippets
Community Discussions
Trending Discussions on broz
QUESTION
I am working on the example from Custom models in Forge Viewer blog by Petr Broz. I am facing issue in updating the color of sphere objects dynamically. I am getting the value of sphere's color from a json file like this "color": "#FF0000"
. I have created 3 spheres and I am getting the color of first sphere for the rest also. Why the color is not updating for the other spheres? If the problem is on using same material then I tried giving the sphereMaterial in array also as shown below. Is that wrong or how can i update the color?
ANSWER
Answered 2020-Jun-05 at 07:01Be sure to give the materials with different colors different names ... otherwise it'd get overridden - see this live environment:
QUESTION
I have this program where I throw exception if char entered is not 'a', 'b', 'c' it throws exception with message "You can't enter nothing else except a,b,c". But it doesn't work like that it always throw exception even if I enter a,b,c. Now my question is what should I do when if I enter a,b,c program keeps working and doesn't throw that exception? Code:
...ANSWER
Answered 2020-May-28 at 21:40if (odgovor1 != 'a' || odgovor1 != 'b' || odgovor1 != 'c')
QUESTION
I am working on the example from Custom models in Forge Viewer blog entry from Petr Broz.
The problem I am facing at the moment is, that the Autodesk.Viewing.SELECTION_CHANGED_EVENT
event is not raised any more after calling the sceneBuilder.addNewModel
method.
To test the issue i've modified the Codepen-example:
Add a new function:
...ANSWER
Answered 2020-Apr-24 at 07:53In case of creating a multi model environment, you would have to use AGGREGATE_SELECTION_CHANGED_EVENT to be notified about selections
QUESTION
I hope somebody can help me with a question about the setThemingColor function for the Autodesk Forge Viewer.
Basically my issue is that when I run the
viewer.setThemingColor(dbId, new Vector4( 1, 1, 1, 1 ), null, true )
from within my code nothing happens, and the element does not get a new color.
What I have tried:
1) If I try to run exactly the same line of code in the browser on the NOP_VIEWER it works, but only if it is a new dbId and not the one which had just been run from within my code.
2) I have tried to make sure to find the leaf dbId and use this. Did not have any effect.
3) I have tried to add the model to the function call:
viewer.setThemingColor(dbId, new Vector4( 1, 1, 1, 1 ), model, true )
4) I have tried to run the function on the level of the model:
model.setThemingColor(dbId, new Vector4( 1, 1, 1, 1 ));
viewer.impl.invalidate(true);
5) I have from within my code tested viewer.isolate(dbId)
to make sure I have access to the viewer instance. And this works.
Is anybody else experiencing the same issue or can replicate the bug? I hope somebody can help us out.
EDIT: More infor after Petr Broz answer:
"What version of the viewer are you using?": We are using v. 7.*
"Do you see any error logs in the console after setting the theming color?": I see no error logs.
"At what point in time are you trying to set the color (for example, after the GEOMETRY_LOADED_EVENT
)?": I use a onClick event on button, so it is after GEOMETRY_LOADED_EVENT
ANSWER:
I found the solution. I had to import THREE as a global.
/* global THREE */
instead of
import {Vector4d} from "three"
ANSWER
Answered 2020-Jan-20 at 13:25Here's a quick codepen setting the theming color on a pre-configured dbID (roof of the house), using viewer version 7.* (currently 7.10): https://codepen.io/petrbroz/pen/WNbYXWz.
It'd be helpful if we had some additional info, for example:
- What version of the viewer are you using?
- Do you see any error logs in the console after setting the theming color?
- At what point in time are you trying to set the color (for example, after the
GEOMETRY_LOADED_EVENT
)?
Alternatively, if you don't mind sharing a live link to your app or your Forge app config, please send us an email to forge (dot) help (at) autodesk (dot) com
, and we'll investigate the issue from our end.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install broz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page