Jump to content

jed

Limited Member
  • Posts

    2,189
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by jed

  1. @mabad I used your code to make this 3points.c4d
  2. I find the concept that any 3 points always lie on a circle a bit mind-blowing. Sounds like the kind of theorem someone in ancient Greece would spend their whole life trying to prove (or disprove).
  3. No probs - was just going to add this with math mult Xpresso Testing3.c4d
  4. Rigging isn't really my thing, but I think I've sorted it. The way hierarchy works is that it outputs each object once every frame as per the instructions - D is down one level, N is down same level (next). In your case start path is D from the top parent, then each subsequent object is N until it runs out of objects. The representative object 'becomes' each object in turn, so any data applied to it applies to all in the list. In this file I've added a reference node which uses the same protocol as hierarchy. It looks at each object hierarchy outputs and goes D to its immediate child ie thumb > thumb ch1 etc. Then I connected the same user data slider - you could put a math node in here to give different bend with the 2 levels of joint. Xpresso Testing2.c4d
  5. If you want to apply the same value to many objects using hierarchy, you use a representative object (usually the first). The hierarchy node must reference the parent of the objects. If your objects are not all together in the OM (ie scattered around), you can use object list in a similar manner. When dragging objects into the list, click the 'padlock' to stop the window closing. hierarchy.c4d object list.c4d
  6. @leiz Have a look at this iteration solution spots_3.c4d you can see which lights are on in object manager when you move the collider
  7. I could have probably have made a better scene where an effector fall off shape moves (ie no object). Same idea though.
  8. A volume effector object moving in the light plane would switch the spots on/off when the cloned light is within the object. In this file I copy the XY position of a 2nd object to the XY of the lights object. When the 2nd object intecepts a spot, it turns it on. spots.c4d might work...
  9. jed

    .

    If you're wondering why the numbers don't match (5 input = 8.66 depth), I was a bit slapdash plugging a real into a vector port - this makes the numbers out by square root of 3. For 5 input = 5 depth divide by 1.732, so 5 / 1.732 input gives Motext depth 5 > Mr Pedantic
  10. jed

    .

    This is springy delay.c4d
  11. I could probably be sent to the tower for mocking the queen and reproducing a banknote - Photoshop gave this message when I opened the note jpeg
  12. 10 ^ -8 is effectively zero. What you are seeing is the so-called floating point error. Python doesn't store numbers the way humans think, and so you sometimes get these little quirks. I guess you could fix this 'error' with something like round(x, 2), but it's not usually recommended. There's discussions at stackoverflow if you google 'floating point error'. I only clean up numbers for display purposes - not in calculations. from https://docs.python.org/3/tutorial/floatingpoint.html LOL, as they say...
  13. I think it's Liz the current Queen Wiki Queen Vic saying 'we are not amused' is ye olde englishe mythe.
  14. Works for me. Are you clicking compile and using 'math dot sin' ? Check menu, script, console for any Python error messages. You do know that Python + Xpresso both use radians ? 360 deg = 2 * pi radians
  15. I was reading up on epicyclic gears at Wiki here. The math at Wiki was a bit hard, so I thought it easier to build a model in C4D and experiment. I got a bit carried away... the soundtrack was made using this , Lego Man model by Rob Redman Lman.zip
  16. I had another look at animating the Windows spinning dot thing today with Python. In this version I animated one obj and made 2 history lists for position and visiblity. The other objs read off 5th, 10th, 15th value etc and so follow the 'master', but with delay. I tried using 'c4dcafe', and it kinda works - but too many letters maybe cafespin2.c4d I did the gifs in Photoshop.
  17. I use this renamer pack - OK with R20 http://www.lasselauch.com/c4d-script-c4d_renamer-pack/ on Windows, goes here C:\Users\jed\AppData\Roaming\MAXON\Cinema 4D R20_4FA5020E\library\scripts\C4D_Renamer-Pack_v1.1
  18. I dug out one of my old animations - 'We wish you a merry Christmas' played on tubular bells. I think I used Nitro4D's SoundFx to trigger the sounds. just a bit of fun
  19. I use modulo a lot, eg if I want to trigger some event every 10F I use if frame modulo 10 = 0 <do something> pseudocode
  20. I don't understand your maths, but this is how I'd do 2 oscillating lights 2lights.c4d edit - probably should have been >= not >, but you get the idea
  21. I was asked by a member for XPresso ideas to drive a clock sweep second hand, so I've zipped up a few scenes that might interest anyone learning XPresso. I used modulo to get the second pulse, a monoflop as a counter and delay effector for a small overshoot and wobble on the hand. In one file there's a ticking sound, but you can't really export sound easily in C4D, so my method is to record the sound in real time in Cinema using Audacity set to 'what you hear', and add it in After Effects. In the past when I've used the Audacity method on big scenes, the sound track can end up longer than the animation, but AE has tools for shrinking tracks. In this clip I exaggerated the hand overshoot to show the effect (has sound) - it's not rocket science, but might help XPresso beginners second_hand2.zip
  22. @madmarvin - regular collision needs objects to be polygons, but dynamic collision node also works with primitives. Depending on scene, dynamic collision often only needs one object input eg 'has object A collided with anything'.
  23. The file on that page gave an error messaged 'too old for R20', so I opened it in R19 and resaved. It seems to work the same in R20 as R19. r20-DelayCamera.c4d
  24. The emitter seems to get detected with dynamic collision node. xpresso_button_flip2.c4d
×
×
  • Create New...