Jump to content


New Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Poor

About gfunk

  • Birthday 06/29/1974

Contact Methods

  • Website URL

Profile Information

  • First Name
  • Last Name
  • C4D Ver
    19.024 Studio
  • Location
  • Interests
  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



C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :) Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
  • Create New...