gemini Posted October 11, 2017 Share Posted October 11, 2017 (edited) Can easily be changed the actual scene view / Display Options / Effect / Material / Set Geo Color in python ? And how ? THX Edited October 11, 2017 by gemini Quote Link to comment Share on other sites More sharing options...
ikoon Posted October 11, 2017 Share Posted October 11, 2017 (edited) I use this one to toggle Display of points on/off: pane = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.SceneViewer) settings = pane.curViewport().settings() markersDisplayModel = settings.displaySet(hou.displaySetType.DisplayModel) markersSceneObject = settings.displaySet(hou.displaySetType.SceneObject) # Toggle the markers (visible when inside /obj/...) markersDisplayModel.showPointMarkers(not markersDisplayModel.isShowingPointMarkers()) # Unify with the scene (visible when in top level "/obj") markersSceneObject.showPointMarkers(markersDisplayModel.isShowingPointMarkers()) More to read is here in docs:http://www.sidefx.com/docs/houdini/hom/hou/GeometryViewportDisplaySet For example:setShadedMode(shaded_mode) #wireframe, hidden lines, shaded with primitive face normals, outlined polygons... Edited October 11, 2017 by ikoon Quote Link to comment Share on other sites More sharing options...
f1480187 Posted October 11, 2017 Share Posted October 11, 2017 import hou settings = hou.ui.curDesktop() \ .paneTabOfType(hou.paneTabType.SceneViewer) \ .curViewport() \ .settings() dispset = settings.displaySet(hou.displaySetType.DisplayModel) dispset.useFadedLook(not dispset.isUsingFadedLook()) In theory it should work, but not for me on 16.0.705. 1 Quote Link to comment Share on other sites More sharing options...
gemini Posted October 11, 2017 Author Share Posted October 11, 2017 THX for all! I am checking them now... Quote Link to comment Share on other sites More sharing options...
gemini Posted October 11, 2017 Author Share Posted October 11, 2017 Somehow the useFadedLook toggles the flag but not shown at the view.. Any idea? THX Quote Link to comment Share on other sites More sharing options...
malexander Posted October 11, 2017 Share Posted October 11, 2017 "Faded" may not exactly what you think it is. It just suppresses geometry color on the model. "DisplayModel" also only affects the geometry of displayed SOP when inside a SOP network. Are you looking for the ghosted look instead? Quote Link to comment Share on other sites More sharing options...
gemini Posted October 12, 2017 Author Share Posted October 12, 2017 This Geometry Color propery is signed as a Material Property ( RMB on the right side of the Scene View ). Maybe helps.. Sorry i have not so much practise in this.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.