konstantin magnus Posted November 20, 2018 Share Posted November 20, 2018 (edited) Here are two simple clipping tools using python SOP verbs: Bricker and Radial. Unlike the divide SOP it´s cutting always right through the center. python_cutting.hip Edited November 20, 2018 by konstantin magnus 6 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 12, 2020 Author Share Posted December 12, 2020 Some exemplary code for easy access: import math node = hou.pwd() geo = node.geometry() cuts = node.evalParm('cuts') clip = hou.sopNodeTypeCategory().nodeVerb('clip') for i in range(cuts - 1): angle = i / (cuts - 1.0) dir = hou.Vector3(math.sin(angle * math.pi), 0.0, math.cos(angle * math.pi)) clip.setParms({ 'dir': dir, 'clipop': 2 }) geo.execute(clip, []) if hou.updateProgressAndCheckForInterrupt(): break node.geometry().clear() node.geometry().merge(geo) 1 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.