Jump to content

bentraje

Premium Member
  • Posts

    1,622
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by bentraje

  1. @maliohammad Thanks for the reply. It now selects display tag. At the moment I am trying to modify the tag's parameters using scripting. My problem is in the parameters (1) Display Mode, Level of Detail and BackfaceCulling import c4d from c4d import gui #Welcome to the world of Python def main(): name = "cube" if doc.SearchObject(name)==None: return else : obj = doc.SearchObject(name) #defines the obj which i cube. OK dis = obj.GetTag(c4d.Tdisplay)#defines the tag which is display.OK doc.SetActiveTag(dis,mode=c4d.SELECTION_NEW)#Selects tag. OK dis[c4d.DISPLAYTAG_SDISPLAYMODE]=2# How do I enable the Use button? In level of detail it is automatically enabled. dis[c4d.DISPLAYTAG_WDISPLAYMODE]=1# dis[c4d.DISPLAYTAG_AFFECT_LEVELOFDETAIL]=80 #Gives me an error: invalid cross-threadcall. I searched for the c4d.utils if there is an option to translate a number to percentage but I can't seem to find any. dis[c4d.DISPLAYTAG_AFFECT_BACKFACECULLING]=TRUE # I was under the impression that boolean only takes True or False. correct me if I'm wrong but this Gives me an error:TRUE is not defined. c4d.CallButton(dis,c4d.ONION_CALCULATE)#Calculates the cache. OK c4d.EventAdd() if __name__=='__main__': main()
  2. @maliohammad Sorry for the trouble. I have this code import c4d from c4d import gui #Welcome to the world of Python def main(): name = "Cube" if doc.SearchObject(name)==None: return obj = doc.SearchObject(name) doc.SetSelection(obj,mode=c4d.SELECTION_NEW) doc.SetActiveTag(obj.Tdisplay,mode=c4d.SELECTION.NEW) c4d.EventAdd() if __name__=='__main__': main() It gives me an error message of "c4d.BaseObject" object has no attribute Tdisplay. I don't understand as the Tdisplay tag is already added in the Cube.
  3. Hi. Sorry for the basic question. Basically, I want to select tag (specifically a display tag). So far I have only managed to select an object with this code. import c4d from c4d import gui #Welcome to the world of Python def main(): name = "cube" if doc.SearchObject(name)==None: return obj = doc.SearchObject(name) doc.SetSelection(obj,mode=c4d.SELECTION_NEW) c4d.EventAdd() if __name__=='__main__': main() I was hoping that it is the same with the selection object which would be mainly tag = obj.SearchTag(name of the tag) (doc.SetSelection(tag,mode=c4d.SELECTION_NEW) #However, there is no function as SearchTag. I tried using Get Tag but only returns the name of the tag rather than selecting it. P.S. Some random python question when defining a function such as main(), the parenthesis represents an argument. I have seen some scripts that read as main (a, b). Does not mean whatever the value of main is stored in a and b?
  4. @WhithersCool! Thanks for the handy info. I just started learning Python just recently (like just yesterday!). I just need the command to automate the calculate cache of the display tag (ghosting tab) because there is no such currently option in the display tag. Anyway, will surely visit this section of the forum more than ever. (Especially for the fact that Python is my first programming language) Again, thanks for the reply! RE: Onion. Just a wild guess. The reason they call it Onion is because ghosting is called onion-skinning in the character animation parlance.
  5. I was hoping the script log would act as like a voice where it spits out what you do in Cinema. It does in but it does not show an activity whenever I press the Calculate Cache. Reference In addition, just want to clarify, I was watching an old C4D tutorial and they just drag the object to the console and the object ID appears. However, when I perform the same task, the console does nothing. Reference Thank you.
  6. Hi. I am not sure what you are going for but I'm replying in the guise that you want an "anime" style. I guess the shadows are giving it a CG feel. It is too heavy. Maybe you can lower its opacity. If this is in motion, for consistency, you can have separate materials on edges such as having a separate spline/edge on the nose, in the skirts and in the hands. As you observed in the pose where palms are spread out, the hands does not have enough depth. While the shadows help it, it is not really enough. If you are looking for a cell-shaded reference, I highly recommend the "A Letter to Momo" film. It has a flat style (with little to no shadow) but the drawing(lines) are really gooooooood.
  7. Your works are stunning. Just had to say that.
  8. Oh really? So sad. I really find his reviews helpful when I get stuck on something new in C4D.
  9. I don't if know I missed it but aren't there any C4DCafe Reviews regarding R17 and R18 versions?
  10. I can't believe I missed this one. Just send a request ticket. I'm soooo excited to learn more about Character Animation. Thank you! (:
  11. Cooooool! Thank you for sharing!
  12. For four years, only 12%? That is kinda low. My money can earn at least 10% in stocks within one year.
  13. While we are it, do you happen to have a PickWalk script equivalent to C4D? That would really be great
  14. Hi @graphos. Correct me if I'm wrong but this can be done in C4D natively. In the upper panel, there is this icons of "X, Y, Z". Intuitively, the shortcut for this icons are "X", "Y", "Z" keyboards. If you disable the Y, Z, it will constrain only to X and vice versa.
  15. This thread is fantastic! Thank you for sharing @VECTOR!
  16. What a sad news. Whenever I search some character rigging problem post in the cafe, I always found his answers helpful. Hope he rest in peace.
  17. I think it something to with using an ESPRESSO + Natural Keyframe Animation (That is using the Coordinates Panel). I tried doing something like this but I was not successful. I ended up using espresso for the whole animation. It could also be a gimbal lock See the first part of the video https://vimeo.com/102139377
  18. Nice render. I don't get it. Why is Arnold becoming a thing these days? I mean I see a lot of C4D rendered in Arnold.
  19. Thanks for sharing! Really nice work. It's inspiring, hopefully in time I can do that kind of look. I really have no luck rendering in C4D. They are just not presentable.
  20. ^Looks really good. Also interested what program do you use for painting? And is it also possible to see the C4D render only?
  21. Wow! Thanks for the sharing the file. Just voted for you. Good luck!
  22. Congratulations mate! The long and enduring production is inspiring!
×
×
  • Create New...