Hello There,
in earlier days (R19 and before) I had a script to toggle the planes from our plane knife cut tool. Sadly it's not working anymore (R21).
What I was able to create was a simple plane cut script for each plane, but I need now three shortcuts to switch them instead of one.
Does anybody have an idea, how this script will look like, with one shortcut?
Thank you very much!
Best,
Peter
import c4d
from c4d import gui
def main():
def tool():
return c4d.plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
def object():
return doc.GetActiveObject()
def tag():
return doc.GetActiveTag()
def renderdata():
return doc.GetActiveRenderData()
def prefs(id):
return c4d.plugins.FindPlugin(id, c4d.PLUGINTYPE_PREFS)
c4d.CallCommand(431000164, 431000164) # Plane Cut
tool()[c4d.MDATA_KNIFEPLANE_PLANE_MODE] = 2
tool()[c4d.MDATA_KNIFEPLANE_PLANE] = 0
if __name__=='__main__':
main()
c4d.EventAdd()