Jump to content

mrpinoux

Regular Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Noble Beginner

About mrpinoux

  • Rank
    Insufficient profile info - first and last name.

Profile Information

  • First Name
    ?
  • Last Name
    ?
  • C4D Version
    16 Studio
  1. Following with that subject, I got some help and this is the result : import c4d from c4d import gui def main(): allobj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_CHILDREN) obj = object() for obj in allobj: editor = obj[c4d.ID_BASEOBJECT_VISIBILITY_EDITOR] render = obj[c4d.ID_BASEOBJECT_VISIBILITY_RENDER] if editor == 1 or render == 1: newstate = 2 else: newstate = 1 obj[c4d.ID_BASEOBJECT_VISIBILITY_EDITOR] = newstate obj[c4d.ID_BASEOBJECT_VISIBILITY_RENDER] = newstate if __name__=='__main__': main() c4d.EventAdd()
  2. Hi! Would it be possible to add a toggle function (with an else function?) to allow turning it back on if it's already turned off? So ideally you can toggle on and off from the same script. Any help would be really appreciated!
×
×
  • Create New...