Jump to content


Bronze Supporter
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by jed

  1. TBH I don't know much about TP emitters, so my comment was about iteration in general. Having user data actually on the XPresso tag confused me a bit, until I realised what was going on. Iteration is a very powerful tool.
  2. Here's my 2 cents - Iteration usually works by having a sample object that represents all the objects to be iterated. The sample object 'becomes' each iterated object in turn by injecting each object ID into the object input port on the sample object. In your jpeg, the spheres are referenced in turn and thus their XP tag. The XP tags have user data Global Velocity as output. The node marked XPresso is an object node that 'becomes' whatever you connect to its input port (marked object). The tag node takes the object that has the tag as input, and outputs the tag. If there's more than 1 tag on an object, you can set the tag type to dynamic, texture etc to select the correct one. In your case, type = XPresso.
  3. A psu only draws the power demanded of it, so if your pc needs say 100W on idle/low use (surfing or watching a movie) and 700W when maxed out (gaming or rendering etc), that is what the power draw will be at the wall socket - it doesn't draw 1000W all the time. That said, psu's have various efficiency ratings eg bronze 80+, that signify how much of the load at the socket is actual 'useful' power, and how much the psu 'wastes', and these values (eg 80% +) are measured at the psu 'sweet spot', so in theory a pc on idle with a 300W psu would use marginally less power than the same pc on idle with a 1500W psu - although the difference is small. My philosophy is that the heat produced by my psu's is actually 'smart heat' in that, in winter, the electricity first does my rendering, and then heats my flat. TLDR - a 1000W psu doesn't use 1000W all the time. Mr Pedantic
  4. I found that adding a field made this work - although I'm not sure why
  5. Sorry - don't understand. Give numerical examples.
  6. Are you changing the ref plane uniformly or per axis, by size or scale? Are the other 2 going to keep their aspect ratio ?
  7. @Wacskamati your 4 chain swing would move like a parallelogram in real life ie seat horizontal. Maybe that's the look you're after Here's Hrvoje's file pre-fields no_field.c4d
  8. Are these editable planes or primitives.
  9. Apologies for my vague instructions - it was kinda late Dragging a field onto a node works for any node, and is quicker and more accurate than going through submenus - where items often have similar names
  10. I don't use pose morph or set driver, but as I understand SD it just makes an XPresso tag with a range mapper with 1 to 1 correspondence. So my guess is to make an XP window, drag each pose tag in, for the driver pose drag the sliders to the RHS to make a port and ditto LHS of the driven pose. Then connect with wires. If both are 0-100% there shouldn't be a problem and a rangemapper won't be required. [ RHS of node is output, LHS is input ] might work...
  11. Is this @Vertex Helix in the park ?
  12. You could set random, then animate transform 360. turn.c4d
  13. num in lotto is just a way of iterating thru the list. I used num as variable name because it sounds like number. These two methods are the same - zfill(2) zero fills a string up to 2 chars in total eg my original method was to test if value was < 10 and concatenate with 0's and spaces etc join + zfill is a bit more elegant
  14. Thanks. Here's the sort of thing I'm talking about - stickman on a unicycle that is steered with ctrl alt - which I guess is cmd option on Mac orangeman.c4d looks better with shadows enabled
  15. I use Windows and I sometimes make scenes that are designed to be run in the viewport just for fun (not rendered as movie clip) eg pinball machine, driving vehicles around etc. I do this using the keyboard - gives better response than user data buttons or sliders. Most of the keyboard is already assigned in C4D, but modifier keys - ctrl, alt, shift, caps lock - on their own are 'free'. What I need to know is, will code I write for Windows using these keys also work on a Mac ? I believe alt = option on Mac ? Could one of you Mac users try my little test program to solve this. You have to set the timeline running, press the relevant keys and let me know if the indicators light up. kb_test.c4d
  16. @southpaw interesting video - the bit about GetCache > hierarchy opens up some possibilites.
  17. If you mean write data to user data from within Python, so it can be read from XPresso - make a null to hang your user data on, and create some data identify the null in python - SearchObject etc, and drag the data field into Python. This makes the correct syntax, but you may have to edit the text to suit. Here I'm writing True to a Bool - BTW the 2 in the code refers to this number try to use correct data types (bool, int etc) - XPresso allows mixing datatypes, but Python gets a bit picky sometimes.
  18. I've got to admit, I'm a bit out of my depth with your type of button. I tend to use 'ordinary' user data buttons - like this button.c4d
  19. Needs some contrast blocky.c4d make sure animated preview is enabled, or you won't see the animation
  20. I think this works - makes a list of nodes in the XP window, searches for a constant node by name, then writes a value. I used frame as dummy data. I find it easier to read + write to user data write2me.c4d code is from a reply in cg soc a while ago. you might be able to adapt it.
  21. @southpaw maybe we should start a Python tips for beginners thread. The rules would be nothing too convoluted, and must have comments in the code explaining things. eg this lottery program - works best with monospaced font eg Digital Readout Upright, Consolas etc, has interesting zfill method. Press play and stop when you feel lucky. lottery.c4d
  22. @southpaw if you're referring to the complicated syntax for C4D in python, are you aware that you can usually just drag stuff from the AM to the python window to get the correct code ? See example here's a couple of 'cheat sheets' I use a lot, that might be of use to you (or anyone) position stuff.txt py math.txt apologies if you know ^^ all this already BTW I develop stuff in Pycharm - cinema tends to lock up too easily if for instance you get stuck in a loop. https://www.jetbrains.com/pycharm/
  23. I think it's a 'seen by transparency' problem. Try turning this off



C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :)
  • Create New...