by daiku » Fri Sep 03, 2010 4:06 pm
How do you dump out the list of rendering options? I'm looking for the parameter for the new "back edges" edge style in SU8. CB.
-

daiku
- PluginStore Author

-
- Posts: 216
- Joined: Mon Nov 12, 2007 2:54 pm
- Location: Minneapolis
- Name: Clark Bremer
-
by thomthom » Fri Sep 03, 2010 4:09 pm
Sketchup.active_model.rendering_options.each_pair do |k,v|; puts "#{k}=#{v}"; end
BackgroundColor=Color(204, 204, 201, 255) BandColor=Color( 0, 0, 0, 127) ConstructionColor=Color( 0, 0, 0, 255) DepthQueWidth=4 DisplayColorByLayer=false DisplayDims=true DisplayFog=false DisplayInstanceAxes=false DisplaySketchAxes=true DisplayText=true DisplayWatermarks=true DrawDepthQue=false DrawGround=false DrawHidden=false DrawHorizon=true DrawLineEnds=true DrawProfilesOnly=false DrawSilhouettes=true DrawUnderground=true EdgeColorMode=1 EdgeDisplayMode=1 EdgeType=0 ExtendLines=true FaceBackColor=Color(164, 178, 187, 255) FaceColorMode=0 FaceFrontColor=Color(255, 255, 255, 255) FogColor=Color(204, 204, 201, 255) FogEndDist=-1.0 FogStartDist=-1.0 FogUseBkColor=true ForegroundColor=Color( 0, 0, 0, 255) GroundColor=Color(210, 208, 185, 255) GroundTransparency=50 HideConstructionGeometry=false HighlightColor=Color( 0, 1, 255, 255) HorizonColor=Color( 0, 0, 0, 0) InactiveFade=0.25 InactiveHidden=false InstanceFade=0.5 InstanceHidden=false JitterEdges=false LineEndWidth=7 LineExtension=2 LockedColor=Color(255, 0, 0, 255) MaterialTransparency=true ModelTransparency=false RenderMode=2 SectionActiveColor=Color(255, 135, 0, 255) SectionCutWidth=3 SectionDefaultCutColor=Color( 0, 0, 0, 255) SectionInactiveColor=Color(112, 105, 97, 255) ShowViewName=true SilhouetteWidth=2 SkyColor=Color(198, 205, 208, 255) Texture=true TransparencySort=0
-

thomthom
- PluginStore Author

-
- Posts: 19478
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by daiku » Fri Sep 03, 2010 4:44 pm
Thanks. I can't see any differences between when "back edges" is turned on or off. CB.
-

daiku
- PluginStore Author

-
- Posts: 216
- Joined: Mon Nov 12, 2007 2:54 pm
- Location: Minneapolis
- Name: Clark Bremer
-
by dem » Sat Dec 18, 2010 1:13 am
+1 I`m searching name of rendering option
-

dem
-
- Posts: 35
- Joined: Mon Dec 13, 2010 5:33 pm
- Location: Lviv, Ukraine
- Operating system: Windows
- SketchUp version: 2014
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Dan Rathbun » Sun Dec 19, 2010 12:24 am
daiku wrote:Thanks. I can't see any differences between when "back edges" is turned on or off.
You are correct. I filed a beta bug report, and Simone logged it as internal bug 2916316. Additional comments, and ideas I posted: DanRathbun wrote:OK.. I looked at this a bit further, and my conculsion is that...
RenderingOptions[’EdgeDisplayMode’] needs to be updated.
The setting is tied to Edges
Currently the value of the RenderingOptions[’EdgeDisplayMode’] key is 0 when both are turned off. Toggling Edges ON adds 1 to the value. (BUT.. if BackEdges is ON, and you turn Edges OFF, the value remains at 1.)
We need toggling BackEdges ON to add 2 to the value, so that:
RenderingOptions[’EdgeDisplayMode’] : 0 = both OFF 1 = Edges ON && BackEdges OFF 2 = Edges OFF && BackEdges ON This may not be used (rendered,) meaning that mode 3 would be enforced, but we should still be able to test for mode setting 2 (the state of checkboxes in the Styles dialog, and the menu item check states.) 3 = both ON
I'm not here much anymore. But a PM will fire email notifications.
-

Dan Rathbun
- PluginStore Author

-
- Posts: 5042
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2015
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by dem » Sun Dec 19, 2010 6:45 pm
thanks, but in ruby console - Code: Select all
Sketchup.active_model.rendering_options["EdgeDisplayMode"] =
works only 1 and 2Sketchup pro 8.0.3117
-

dem
-
- Posts: 35
- Joined: Mon Dec 13, 2010 5:33 pm
- Location: Lviv, Ukraine
- Operating system: Windows
- SketchUp version: 2014
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Dan Rathbun » Sun Dec 19, 2010 9:13 pm
dem wrote:thanks, but in ruby console - Code: Select all
Sketchup.active_model.rendering_options["EdgeDisplayMode"] =
works only 1 and 2Sketchup pro 8.0.3117
It should only have 0 and 1 values at this time. You did not read what I said correctly. I am proposing that values 2 and 3 be added to the API so that we can know the BackEdges setting.
I'm not here much anymore. But a PM will fire email notifications.
-

Dan Rathbun
- PluginStore Author

-
- Posts: 5042
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2015
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by dem » Sun Dec 19, 2010 9:51 pm
Sorry, i mind 0 and 1.. And how can I add it to API? =)
ps. my English is not good
-

dem
-
- Posts: 35
- Joined: Mon Dec 13, 2010 5:33 pm
- Location: Lviv, Ukraine
- Operating system: Windows
- SketchUp version: 2014
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Dan Rathbun » Mon Dec 20, 2010 6:06 am
dem wrote:And how can I add it to API?
You CANNOT. Google must do it on the C++ side of the application code. That is why I filed the Bug Report, and a number was assigned to it, by the Sketchup Development Team.
I'm not here much anymore. But a PM will fire email notifications.
-

Dan Rathbun
- PluginStore Author

-
- Posts: 5042
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2015
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by TBoy » Sat Dec 30, 2017 4:33 pm
Any updated info for this topic?
-
TBoy
-
- Posts: 83
- Joined: Mon Jan 04, 2016 10:45 am
- Name: TBOY
- Operating system: Windows
- SketchUp version: 2014
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Beginner
by Dan Rathbun » Sat Dec 30, 2017 9:52 pm
TBoy wrote:Any updated info for this topic? YES. (5 years after this thread ...) In the SketchUp 2015 release, a new key was added to the RenderingOptions hash: The key is: "DrawBackEdges"See API documentation: http://ruby.sketchup.com/Sketchup/RenderingOptions.html
I'm not here much anymore. But a PM will fire email notifications.
-

Dan Rathbun
- PluginStore Author

-
- Posts: 5042
- Joined: Tue Oct 06, 2009 3:06 am
- Location: Florida, USA
- Name: Dan Rathbun
- Operating system: Windows
- SketchUp version: 2015
- License type: Pro
- SketchUp use: education
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Developers' Forum
|