Jump to content


Regular Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Noble Beginner

Profile Information

  • First Name
  • Last Name
  • C4D Version
    19.024 Studio
  • Website URL
  • Location
  1. Thanks so much, I looked through the file but I was thinking a script that when run it would: Look at selected object store display color into variable search through project and select all objects that have the same display color. When I try and implement your xpresso rig it only works with objects directly inside the parent. I have scenes that have multiple objects in multiple parents. Thanks so much for the help.
  2. I figure this has to be easy but I know very little about python. I get CAD files and most of the time specific objects are colored differently in the display tag. I'm trying to have a script look through object list and select objects that have similar color in their display color. How should I do this?
  3. I got it working. For some reason there was something weird when I copied it to the scripting window. I deleted the if __name__='__main__': main() and rewrote it and the script is working. Thanks so much!!!
  4. That doesn't work. If I copy and paste nothing happens when selecting one object or multiple objects.
  5. Hello All I had some c.o.f.f.e.e. scripts that I use to toggle the visibility of objects in c4d on and off. but now that r20 doesn't like coffee my scripts no longer work. I'm having trouble converting them to python since I'm not a scripter. Can anyone help me. Here is the original coffee script Hides in editor and in render CallCommand(1016208); // Hide Objects CallCommand(100004784); // Renderer Off Resets object to visible in editor and visible in render CallCommand(100004779); // Editor Unchanged CallCommand(100004782); // Renderer Unchanged These scripts just let me toggle selected objects to be hidden in the editor and renderer without having to toggle the dots. I've tried to transfer this into python but I can't get it to work with multiple selected objects. Can anyone help me. Here is my python hack right now. import c4d from c4d import gui #Welcome to the world of Python def main(): def object(): return doc.GetActiveObject() obj = object() obj[c4d.ID_BASEOBJECT_VISIBILITY_EDITOR] = 1 obj[c4d.ID_BASEOBJECT_VISIBILITY_RENDER] = 1 if __name__=='__main__': main() c4d.EventAdd() This hides the selected object. But if I select multiple objects it doesn't work. Any help super appreciated. Thanks G
  • Create New...