Quantcast
Channel: Extensions - SketchUp Community
Viewing all articles
Browse latest Browse all 3625

RenderMode Bug?

$
0
0

@RafaelRivera wrote:

hello devs

I am having trouble toggling between render modes with code. Bellow is an example of what I am trying to do. Help is appreciated.

model = Sketchup.active_model # Open model

#Wireframe = Working Good
model.rendering_options['RenderMode']= 0

#Hidden Line = Working Good ... But why is it named hidden line though?
model.rendering_options['RenderMode']= 1

#Shaded = Working Good
model.rendering_options['RenderMode']= 2

# The following are not working as expected...

# Shaded with texture = NOT Working Good
model.rendering_options['RenderMode']= 3

# Monochrome = NOT Working Good and SketchUp crashes when I call the code bellow!
model.rendering_options['RenderMode']= 4

To get Shaded with texture I have to the following…

# I think model.rendering_options['RenderMode']= 3 is much easier but it doesn't work.
model.rendering_options['RenderMode']= 2
model.rendering_options['Texture']= 1

Now I need help with Monochrome because I don’t know how too call it with code easily. Can anyone help me with this?

Thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 3625

Trending Articles