은채 오
ohhhhh
About Me
EXPERTISE
VFX Artist
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Houdini change background color Python advice please July 15, 2024, 10:52 p.m.
Thanks a lot!
Houdini change background color Python advice please July 15, 2024, 2:32 a.m.
import toolutils
scene_viewer = toolutils.sceneViewer()
viewports = scene_viewer.viewports()
#persp
persp_viewport = viewports
perspviewport_settings = persp_viewport.settings()
current_sheme = perspviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
perspviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
perspviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#front
front_viewport = viewports
frontviewport_settings = front_viewport.settings()
current_sheme = frontviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
frontviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
frontviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#top
top_viewport = viewports
topviewport_settings = top_viewport.settings()
current_sheme = topviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
topviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
topviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#right
right_viewport = viewports
rightviewport_settings = right_viewport.settings()
current_sheme = rightviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
rightviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
rightviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
-------------------------------------------------------------------------------------
hello.
Is there a way to solve it all at once rather than using each conditional statement?
please help me. thank you.
scene_viewer = toolutils.sceneViewer()
viewports = scene_viewer.viewports()
#persp
persp_viewport = viewports
perspviewport_settings = persp_viewport.settings()
current_sheme = perspviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
perspviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
perspviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#front
front_viewport = viewports
frontviewport_settings = front_viewport.settings()
current_sheme = frontviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
frontviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
frontviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#top
top_viewport = viewports
topviewport_settings = top_viewport.settings()
current_sheme = topviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
topviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
topviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
#right
right_viewport = viewports
rightviewport_settings = right_viewport.settings()
current_sheme = rightviewport_settings.colorScheme()
if current_sheme == hou.viewportColorScheme.Light:
rightviewport_settings.setColorScheme(hou.viewportColorScheme.Dark)
else:
rightviewport_settings.setColorScheme(hou.viewportColorScheme.Light)
-------------------------------------------------------------------------------------
hello.
Is there a way to solve it all at once rather than using each conditional statement?
please help me. thank you.
How to gently give temperature to Arnold. May 6, 2020, 8:13 a.m.
I'm trying to render an explosion and I want to give the temperature a noise.
Please tell me how to do it.
My reference: https://vimeo.com/218073730 [vimeo.com]
Please tell me how to do it.
My reference: https://vimeo.com/218073730 [vimeo.com]