Jump to content


Regular Member
  • Content Count

  • Joined

  • Last visited

  • Days Won


kalugin last won the day on May 10

kalugin had the most liked content!

Community Reputation

79 Noble Beginner

1 Follower

Profile Information

  • First Name
  • Last Name
  • C4D Ver
    16 Studio
  • Location
    Ruse, Bulgaria
  • Interests
    3D Visuals, Coding, CNC Machining, Off-grid living.

Recent Profile Visitors

3,266 profile views
  1. Ok, sorry man. Not messy, but too complicated :) It's hard to read what exactly is happening for someone that is not on track with the purpose of the code.
  2. The code is a bit messy. What's do you want to achieve actually ?
  3. Hey Kalugin -- you made this 'select similar geometry' script that had 'replace with render instance' as an option, first off -- I love it, and thank you SO much for creating this! It is really great for consolidating & simplifying scenes converted from other 3D engines, and stock models of rooms and architectural environments. (hundred of identical chairs, tables, lamps etc all scattered across a space) 

    The 'replace with instance' feature seems to no longer work with R20, would you be willing to update it for R20?

  4. import c4d from c4d import gui #Welcome to the world of Python def main(): doc.Flush() if __name__=='__main__': main() @Hrvoje but this empties the document. The script that he included basically deletes the UNDO memory buffer. import c4d from c4d import gui #Welcome to the world of Python def main(): doc.FlushUndoBuffer() if __name__=='__main__': main() @Duca here is the python version of your old script.
  5. well, that was a lot of comments. I'm glad that I have enough beer Fixed some issues while commenting. Random option was not working in picture viewer. Also fixed some other little bugs. Have fun. If any of the coders have any advice regarding the code - I'd be glad to learn some tips and tricks. Spacer.zip
  6. yeah, once I'm sure it works :) And I like to clean and comment the code that I share in the forum. That way it's more useful for everyone. I know when I started coding for c4d, how I was starving for someone to share anything to learn from
  7. unzip in your plugins folder :) Spacer.zip
  8. @Vizn Yeah, that's the idea :) I just need to fix some things and I'll share it.
  9. I've just started playing with the idea. I'll share the result when it's ready. But it is really basic cloner anyways. If it has some potential, maybe I'll invest more time to make it a full featured plugin.
  10. @Hrvoje this is not what @Vizn and @Cerbera are talking about. Or maybe I didn't understand :) I thought the idea was to get a result similar to this:
  11. if it's just a linear cloner it sounds like a fun little task :) I'll do it. Grid and radial will take more time.
  12. import c4d from c4d import gui def main(): selectedMaterials = doc.GetActiveMaterials() # create a list, containing the selected materials for material in selectedMaterials: # for each material in the list if material[c4d.MATERIAL_COLOR_SHADER] is not None: # check if the material has a shader in the diffuse slot. This could be written "if material[c4d.MATERIAL_COLOR_SHADER] != None:" or just "if material[c4d.MATERIAL_COLOR_SHADER]:" material[c4d.MATERIAL_USE_BUMP] = True # activate the bump channel texture = material[c4d.MATERIAL_COLOR_SHADER].GetClone() # get a copy of the diffuse shader filterShader = c4d.BaseShader(c4d.Xfilter) # create a filter shader in memory filterShader[c4d.SLA_FILTER_SATURATION] = -1 # desaturate the image filterShader[c4d.SLA_FILTER_TEXTURE] = texture # assing the texture to the filter shader filterShader.InsertShader(texture) # insert the texture to the structure of the shader material[c4d.MATERIAL_BUMP_SHADER] = filterShader # assing the filter shader in the bump slot material.InsertShader(filterShader) # insert the filter shader to the material structure c4d.EventAdd() # refresh C4D if __name__=='__main__': main() this works only for native materials and does not have an implemented UNDO :) have fun @Cerbera is right. This is a really basic solution. But widely spread, sadly :)
  13. http://blog.grooff.eu/ has some interesting experiments also just searching "cinema4d python" in youtube returns some good results. And you can always ask here for help at some task :) Have fun.
  14. It's link is in the downloads section from quite some time, but i think that i've forgotten to make a topic here :D https://www.c4dcafe.com/ipb/files/file/1103-group-object/
  15. i don't think hiding polygons will optimize your workflow a lot. If it's the visual effect you are looking for, then OK. C4D can handle many polys with no problem. The issue comes with a lot of objects.



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...