Jump to content
Info News:
  • C4D Cafe 2.0 COMING SOON!

All Activity

This stream auto-updates     

  1. Today
  2. This file has a mat change on collision - although it doesn't stick. Uses Python GetCache() which allows you to iterate through a cloner as if the cloner had been made editable. getcache2.c4d
  3. This is rather like a bad workman blaming his tools. You really seem to be saying 'I don't want to put the skills into learning modelling, but I'm annoyed that the lazy cheats for that don't work all the time'. It's hard to be impressed by that attitude if I'm honest, or to know what advice to give you - maybe you should stick with programs more like MOI or Solidworks if proper poly modelling is beyond you. But please don't blame Cinema, whose modelling toolset (and even the cheats when used properly) are really pretty decent now for those willing to put a little time into learning how to use them... Like so many of your posts - there was no need whatever to use a boole for this. Simple poly modelling could have done it in only fractionally more time than it would have taken to setup the boole and you'd be getting none of the problems... I have to go work now, but will show you how when I get back if no1 else gets there first... CBR
  4. looks like it was made with the 1976 version of c4d :D regarding the rig: yeah i feel you. been there. took me literally days to sort the priorities of my face rig out. for the body it shouldn’t be that much of a struggle though since there are not that many dependencies to sort out. sometimes it‘s good to put it aside for a couple of days and look at it again with some fresh eyes.
  5. Hi guys, I'm trying to model recesses into this tray, but unfortunately I've had to use the boole tool which makes the file size huge when i want to do a couple of holes. I basically want the trays like iPhone packaging, so it's a recess in a piece of plastic essentially.. which holds a product.. I've tried to use cuts and have had this problem before on other projects. I'm not sure if C4D is good for this type of modelling?.. as it shouldn't be a difficult thing to do.. but MAXON seem to make it complicated.. In Solidworks for example, I can simply draw the shape i want on a model face and extrude it inwards to create the hole.. it couldn't be more simple.. Does anyone know how i can create a spline shape on a surface to create a hole, without using the cut tool? any advice would be great thanks packaging tray.c4d
  6. @everfresh wasn't expecting to learn more about George Duke around here, ahah. Thanks for the links. Master Of The Game is a great album! I heard "I Want You For Myself" a few times before, really love this song. Didn't know it was him. I also heard about the awesome Daft Punk sample but didn't know it was coming from here. There's also a huge Funkadelic vibe at times :) A Brazilian Love Affair is cool too, there's awesome parts but the more "free jazz/improvised" parts are a little straining to me. That's what kinda set me off on the few albums I listened before. And I love "Funkin' for the Thrill", that's the typical funk sound I love. He also has some very cool album covers. Love this one : Concerning the rig, that's hard to stay motivated. It feels like each time I make a step forward, I make two backwards. *crying face emoji*
  7. The commands as shown in the script log will help you only so far. If you want to execute a command on several objects, or perform complex operations, you will need to delve a bit deeper into Python. In this case: When you use an ID for the menu item that is also a C4D command ID and the string is 'CMD', then the ShowPopupDialog will execute that command. In all other cases, the ShowPopupDialog will just return the ID that you passed, and you will need to create some code to execute in these cases. In your sample, this would look like this: import c4d from c4d import gui # Define Menu Item IDs IDM_MENU_TITLE = c4d.FIRST_POPUP_ID IDM_MENU1 = c4d.FIRST_POPUP_ID+1 IDM_DROPDOWN1 = c4d.FIRST_POPUP_ID+4 IDM_ADDPROTECTION = c4d.FIRST_POPUP_ID + 10 def main(): # Menu Creation menu = c4d.BaseContainer() menu.InsData(IDM_MENU_TITLE, 'Popup Dialog &d&') menu.InsData(0,'') menu.InsData(IDM_ADDPROTECTION, 'Add Protection Tag') # Execute code below dropdown_menu = c4d.BaseContainer() dropdown_menu.InsData(1, 'Add Objects/Mograph') dropdown_menu.InsData(c4d.Ocube, 'CMD') # Adds a Cube Primitive dropdown_menu.InsData(1018544, 'CMD') # Adds a Cloner Object menu.InsData(0, '') menu.InsData(IDM_DROPDOWN1, dropdown_menu) # Show Popup Dialog result = gui.ShowPopupDialog(cd=None, bc=menu, x=c4d.MOUSEPOS, y=c4d.MOUSEPOS) print result if result == IDM_ADDPROTECTION : objlist = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_CHILDREN) if objlist: doc.StartUndo() for obj in objlist: newTag = c4d.BaseTag(c4d.Tprotection) doc.AddUndo(c4d.UNDOTYPE_NEW, newTag) doc.AddUndo(c4d.UNDOTYPE_CHANGE, obj) obj.InsertTag(newTag) obj.Message(c4d.MSG_UPDATE) doc.EndUndo() c4d.EventAdd() if __name__=='__main__': main() I kept your basic structure here but added a new ID IDM_ADDPROTECTION for the execution of the menu. The actual execution starts after the menu closes with 'if result == IDM_ADDPROTECTION', here's the relevant code again commented: # check for the ID of the menu to execute; use muliple IFs or CASE to distinguish # between several commands if result == IDM_ADDPROTECTION : # fetch the list of selected objects from the document. The sequence # of selection is not relevant, but you want the selected children as well, # as each object needs a separate protection tag objlist = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_CHILDREN) # check whether there are any objects selected; if not, the code # is skipped altogether if objlist: # For UNDOs, you may want to consult the documentation, I just # inserted all the undo commands here because of style ;-) doc.StartUndo() # go through the list of selected objects one by one for obj in objlist: # create a new protection tag (I'm not using the command # from the command ID list here but the proper "new") newTag = c4d.BaseTag(c4d.Tprotection) doc.AddUndo(c4d.UNDOTYPE_NEW, newTag) doc.AddUndo(c4d.UNDOTYPE_CHANGE, obj) # put the new tag on the current object. Note that this # will delete an old tag of the same type unless the tag # can be applied as MULTIPLE. The protection tag can't # so you need to be careful (the best style is to check whether # the object already has a protection tag) obj.InsertTag(newTag) # send the current object a message that it needs updating obj.Message(c4d.MSG_UPDATE) # send the document the message that the undo block ends here. # This is done after the loop through all selected objects so # the undo will need to be executed only once to delete all the # created protection tags in one fell swoop. doc.EndUndo() # tell C4D to update everything so any attribute manager, object manager, # and viewport will be refreshed c4d.EventAdd() (oh, and could someone explain to me why the whole block XPresso, Python and Plugin Development in the Forum list is marked as "Private Section" im the overview, and made inaccessible? Now obviously that is no serious block but I can't find an explanation for that either)
  8. This is one i quickly made using a cube and spline in sweep for the edge, no zip:
  9. I can ask them if you want? Just let know what exactly you would like to know?
  10. YES!! That was the problem, THX a lot :D
  11. You could look in the Content Browser to see if you can find a model that can be customised into this, but you are unlikely to find any tutorials or 'templates' for something so specific - you just need general poly modelling skills to be able to make this well. And those are the sort of things that take a few years of practice to acquire rather than can be taught in any single forum post... However I can give you the following advice that should hopefully send you off in the right direction... Like DV says, you can start with a suitably proportioned cube Do the end braids as separate objects The heart tag can be either a Sweep Object or made with the poly pen Make the zip teeth with the Cloner Use a noise-driven displacer to get the slightly organic, uneven surface Use nice, even quad polygons everywhere so that your deformations and Subdivision works correctly The zip handle is the only challenging thing to model here, and you already have a tutorial for that, so that should be everything you need strategically before you start... Here's what I'd do as the first 4 steps... 1. Cube, set correct dimensions, and even segments (here 8 x 6 x 3) 2. Bevel Deformer, chamfer mode, 1 segment, Angle Limit to 40 degrees. 3. Displacer (as a child of cube), driven by Perlin noise (400% scale, 5 cm strength) 4. Place under Subdivision Surface Object. After that you can use Edge to Spline to extract path splines for the end braids, and use those in Sweep objects, or maybe with Spline Wrap etc to get those. CBR
  12. Yes very nice and complicated facial rig. My only concern is how smooth the animated transition pose movement from one key-frame to the other will be. and any priority issues.
  13. Hi, what part of the modelling are you straggling with? is it the edge stitch? the plastic material? the zip? it's basically a cube. it will be easier to help you if you posted a file of how far have you got with trying to model this. here is a zip tutorial: https://vimeo.com/220200102
  14. I hope this is the right place to add this > I everybody, im not all new to c4d but im not a professional yet either. So i would like to ask if there is any source of tutorial or template that would help me to create a cosmetic pouch as seen on the image i attached. Any help is appreciated. Maybe you even consider to contact me and help me directly? Thanks in advance!
  15. I can indeed, that explains why I couldn't access the site for a few minutes! 😛
  16. One unrelated question if you dont mind. Can you see new forum update? :)
  17. Brilliant, thanks for the speedy reply and heads-up, @Igor! 🙂
  18. @kbar @C4DS Should know somthing about this one! :)
  19. Thanks for reply and for videos Cerbera, I tried do this connections like yours but the emission is 100% ever. I can't find an option to decrease the intensity. I'm trying another test like this. Chess
  20. I am writing a small script that will serve as a quick-access popup dialog for certain functions in C4D, using Python (relevant documentation). These functions include adding primitives, etc, and the popup itself is imported as a user script and bound to a keyboard shortcut for ease-of-use. As the script is growing I am wanting to add a method to quickly add tags to selected objects when an option from the popup is selected, however I am having trouble executing the commands/functions necessary from within the script. Here is a stripped back example of the script: import c4d from c4d import gui # Define Menu Item IDs IDM_MENU_TITLE = c4d.FIRST_POPUP_ID IDM_MENU1 = c4d.FIRST_POPUP_ID+1 IDM_DROPDOWN1 = c4d.FIRST_POPUP_ID+4 # Menu Creation menu = c4d.BaseContainer() menu.InsData(IDM_MENU_TITLE, 'Popup Dialog &d&') menu.InsData(0,'') add_tag_to_objs = c4d.BaseContainer() add_tag_to_objs.InsData(1, 'Add Protection Tag') # This tag is arbitrary dropdown_menu = c4d.BaseContainer() dropdown_menu.InsData(1, 'Add Objects/Mograph') dropdown_menu.InsData(c4d.Ocube, 'CMD') # Adds a Cube Primitive dropdown_menu.InsData(1018544, 'CMD') # Adds a Cloner Object menu.InsData(IDM_MENU1, add_tag_to_objs) menu.InsData(0, '') menu.InsData(IDM_DROPDOWN1, dropdown_menu) # Show Popup Dialog result = gui.ShowPopupDialog(cd=None, bc=menu, x=c4d.MOUSEPOS, y=c4d.MOUSEPOS) print result When executed this returns the following result: Accessing the commands that add a Cloner or Cube was simple, one can simply open the script log, add an object to the scene and then take the resulting .CallCommand() ID outputted in the log and add it to the script with the .InsData() function (as shown above). When adding tags, however, the resulting script log shows several commands being executed, in a way that I can't figure out how to replicate with .InsData() : c4d.CallCommand(5629) # c4d.CallCommand(100004788, 50018) # New Tag As a result, I can see it being necessary to define a function that loops through the selected objects in the scene whilst adding the relevant tags to them. However I cannot figure out firstly what this function should look like, and secondly how to execute it when clicking the 'Add Protection Tag' option from the popup script? I'm still fairly new to Python scripting and C4D in general so detailed/commented answers would be much appreciated- but I'll take all the help I can get! 🙂 Thanks in advance!
  21. Yesterday
  22. Hi, this is my first topic, first of all a big thank you to this community for all the content and sharing.. I'm posting here after a long struggle on a XPRESSO problem : i have a thousand moving spheres (cloned ofc) that come in collision with a big cube. I want the collisioned spheres to change material on hit. I read multiple tutorials, watched videos and even found a topic that is pretty similar to my problem : My struggle is that what is changed in the topic is the display color and not the material. From now on the only thing i have managed to do is this : it changes all the sphere's material on hit. Any idea how to change only the collisioned sphere's material ? Have a nice day
  23. Please update your profile info with the version you are using. I'm fairly new to nodes myself, and happy to be corrected by people that know better, but wouldn't you connect those like so ? If you take look in our tutorials section you will find an epic playlist on the Nodes system that will answer this question much more thoroughly... CBR
  24. That's a nice rig :)
  25. How do I create a Texture node with a image map apply on Color and luminance (emissor I think)? When I use the simple texture is possible apply two times an image map on Color slot and luminance slot. How do this on node material? Can I use the same image map?
  1. Load more activity
×
×
  • Create New...