Jump to content

jed

Bronze Supporter
  • Content count

    995
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by jed

  1. Cinema 4D-Specific Keyboard

    The 10 page R19 hotkey pdf on that keyboard site is pretty awesome link.
  2. I see now why your cached scene was different to mine. I usually cache the whole scene at once. If you want to do each cube in turn, maybe you should bake them bottom up, so the higher ones bounce off the baked ones. Have you considered follow position + rotation on the dynamic tag ? I don't use it myself, but I believe it's like a sliding scale between 100% dynamics and 100% regular animation. You might be able to keyframe the % influence to put the cubes end positions where you want them. BTW re: your question on steps per frame - this is a way to increase dynamic accuracy. If some objects are moving fast and there's a large difference in position from one frame to the next, stuff can intercept - cubes going through the floor etc. Increasing steps per frame from default 5 to say 15 or more will fix intercepting.
  3. I'm not sure how you cached the dynamics, but I cleared the cache and baked using project settings (ctrl D), dynamics, cache, bake and the animation was identical with and without bake. mybake.c4d
  4. Import trajectory as Python script

    I think you are misusing the word vector - it usually refers to 3 values eg XYZ. Looks like you need a list, and the index should be an integer. Menu, script, console is the place to look for Python error messages. def main(): global index, posX timeStep = 0.1 index = time/timeStep index = int(index) A = [0,10,20,30,40] posX = A[index] edit : dividing a float (time) by 0.1 might not be the best way to get integer index. FP's can have rounding errors - and not work as expected. If fps is 30, floor division of current frame by 3 would give the desired 0.1s pulse def main(): global Output1 frame = doc.GetTime().GetFrame(doc.GetFps()) index = frame // 3 # floor division Output1 = index although, since C4D uses an old version of Python where integer division gives integer result, just frame/3 would also work.
  5. Works for me. You have to open render settings and drag 'my render settings' into the XP. The divides are div 2. If you set formula to radians you can omit the rad to deg node. camera.c4d you might have to refresh the scene, jiggle the playhead etc, to force a re-calculation
  6. How to edit light preset

    @AlexisB see this post for an example of what we are talking about re XPresso -
  7. How to edit light preset

    Presets like that usually have a custom user data control panel that shows up when you select the parent null of the preset. XPresso is a visual, node-based programming language that comes with Cinema. It reads the values from the control panel and drives the various objects in the preset. This usually overrides changing the values manually. A lot of users on this forum design their own XPresso set-ups, to control animation etc.
  8. A bit like this - speed.c4d edit: I added a start position slider speed2.c4d
  9. @lexfx it's an interesting machine. In case you're not an XPresso user - if the numbers seem somewhat small, that's because XPresso uses radians not degrees 360 deg = 2 * pi radian 1 radian = 57 degree approx
  10. If you want to push those conrods using the hinges, you should put the hinges in the balancer lever. In this file I've moved some axes around, made the balancer a collider and I'm moving it with some XPresso math. The wheel has damping. Still needs some alignment, but it moves . . . Machine.c4d
  11. In the original post, @nicks refers to enable - which is different to visible.
  12. @fxtree - the object's visibility sticks when you take it out of the null. Just making the null traffic lights red would achieve the same thing, but 'hidden' would not stick when the object is removed from the null.
  13. Lightning in C4D.

    Same poster, same question, same answer Feb 4
  14. How to delete points ?

    I've just looked on Turbosquid and they have some electric basses in the $50 - $100 range eg this Fender jazz. I've used Turbosquid a couple of times for drones, and they seem OK. Considering that the prices for their model drones are about the same as a real model drone and very realistic, I had to laugh when I went to checkout and there was a disclaimer 'note - you are not buying an actual model'.
  15. How to delete points ?

    You would also have to move the 4 remaining strings so they are evenly spaced across the fretboard. Then there's the bridge with 6 adjusters to fix, ditto the pickups with 6 poles, 6 tuners (if in shot). Probably easier to download an actual bass guitar. In fact, judging by the thickness of the strings, that could well be a 6 string bass - a regular guitar has 3 plain strings and 3 wound strings.
  16. The cogs are still wrong - the tooth on one should fill the space on the other. A bit like this does your version of C4D have the cogwheel tool ?
  17. I re-made it with equal teeth. I left the cogs editable, but I'm not sure if @lexfx 's version has the new groovy cog tool. moregears.c4d
  18. The gear teeth should be the same size, but with fewer on the small cog. A bit like this -
  19. coffee to Python

    @borg re: my last message about multiple assign ie assigning several values on one line a, b, c, d = 1, 2, 3, 4 etc this can be used to swap values eg a, b = b, a in this file I used that method to create the 'moving fairground lights' illusion (lights switched on/off in a pattern so they appear to move). I have 3 lights cloned around the object and the brightness pattern toggles a, b, c = b, c, a to give 'movement' cafelights.c4d
  20. coffee to Python

    I also use this method def main(): global Output1, Output2, Output3, Output4 if Input1 == 0: Output1, Output2, Output3, Output4 = True, False, True, False else: Output1, Output2, Output3, Output4 = False, True, False, False
  21. coffee to Python

    One of my on-going projects is python helicopters. In this file, start the timeline, then in the control panel adjust rotors, altitude, speed then steer. Might fly a bit slow if you haven't got a reasonable gfx card. https://www.dropbox.com/s/3fhnianc9jm4rx6/legohelicopter.zip?dl=1 it's not designed for making movies - just for fun in the viewport.
  22. coffee to Python

    @borg here's one of the first scripts I wrote. It generates 6 lottery numbers, and sorts lo-hi. Note the 'import random'. lottery.c4d
  23. coffee to Python

    Real and float are the same. One thing to remember with numbers is the way Python 2.7 (cinema uses an old version) treats integers different to reals esp in division. Integer division gives an integer result eg 3 / 2 = 1.5 in Python 3.5 (and IRL) 3 / 2 = 1 in Python 2.7 this can trip you up if you use current frame (an integer) in a calculation, but can be fixed by using 3.0 etc. I use the free Pycharm to develop script ideas - you have to install Python first. http://www.jetbrains.com/pycharm/ https://www.python.org/
  24. coffee to Python

    def main(): global Output1 # and the rest if Input1 == 0: Output1 = True Output2 = False Output3 = False Output4 = False Output5 = False Output6 = False Output7 = False else: Output1 = False # etc note it's case sensitive, indent and colons. Outputs must be global, but can be declared on one line separated with commas true.c4d
  25. Weird shells had a scale of 100, so I made it 1 and manually scaled them up. Also I zeroed out the axis. Seems to work. shells.c4d cloners ain't exactly my strong suit . . .

×