Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import c4d
- def main():
- obj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_0)
- obj = obj[0]
- while obj.GetUp():
- obj = obj.GetUp()
- doc.SetSelection(obj,c4d.SELECTION_NEW)
- c4d.EventAdd()
- if __name__=='__main__':
- main()
- #just up:
- import c4d
- def main():
- obj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_0)
- obj = obj[0]
- obj = obj.GetUp()
- doc.SetSelection(obj,c4d.SELECTION_NEW)
- c4d.EventAdd()
- if __name__=='__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement