Jump to content

mrittman

Sound Track - Start Time

Recommended Posts

  • Topic Author
  • Oh that’s interesting, thanks for sharing man! Maybe instead of having 15 different sound effectors, I could just have 1. Then have a select box to choose which one to play? Then yeah, could also output the filename if need be.

     

    What I find kind of frustrating is when working with the Take System. When creating a new Take, it doesn’t show the waveform in the timeline, and I have to go back to the Main Take to see it. At least having this system we’ve set up let’s ya adjust the Start Time when under child Takes.

     

    I think I’ve spent way too much time on this lol. It’s the perfectionist nature in me :/

    Share this post


    Link to post
    Share on other sites

    I've never used takes.

     

    Is that dropbox file something like what you had in mind ?

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • 1 hour ago, jed said:

    I've never used takes.

     

    Is that dropbox file something like what you had in mind ?

    Oh man Takes are awesome if you've got a scene that needs a bunch of animation. Before Takes, I would have to break my C4D project into several files. Now I can do it all within one file.

     

    Oh shoot, my bad, I didn't see the dropbox link! I'll take a look!

    Edited by mrittman
    dropbox link

    Share this post


    Link to post
    Share on other sites
  • Topic Author
  • Wow, I feel dumb...didn't know there was a python tag haha! Yeah man this is a nice little setup!

     

    You've definitely got a lot more experience with this coding stuff than I do. Takes me a lot longer to get my head around.

     

    Thanks again!!

    Share this post


    Link to post
    Share on other sites

    Python nodes and tags have their own advantages.

     

    If you have a lot of objects to read from and write to, but hardly any number crunching, a python node is quicker to set up - just click some wires as opposed to typing many doc.SearchObject(), ditto writing data etc in a tag.

     

    One little glitch with python nodes, is that sometimes a node doesn't work because there's no output port connected. I've never managed to isolate the actual conditions when this happens, but I usually have a redundant output connected 'just in case'. In the 1st file, there was a remark 'leave this connected' - force of habit.

     

    When editing python, a lot of people click compile and if it says 'no errors' think that's it. You should also check menu > script > console for error messages. In the dropbox file, if you try to select more tracks than are loaded you see this in console

     

    error.png.7146975e1297347363cfd354aa1c7067.png

     

    the usual fix for that is 'if xyz :  return'

    • Like 1

    Share this post


    Link to post
    Share on other sites

    oops cross posting - can you show the code for the time problem.

    Share this post


    Link to post
    Share on other sites

    I'm guessing that although the time user data shows frames, it's converting that value into a c4d base time unit - similar to when you dial in degrees but XP converts them to radians.

     

    If you want to use frames as time, make an integer user data and convert it to time as per 1st file

     

    delay_secs = delay_frames / doc.GetFps()

     

    you could just type in the fps, but beware integer division

     

    10 / 30 = 0

    10 / 30.0 = 0.333

     

    etc

     

    in 1st file, input port was real, so integer frames input was converted to float.

    Share this post


    Link to post
    Share on other sites

    you can also replace the RHS of

     

    t[c4d.CID_SOUND_START] = c4d.BaseTime(delay)

     

    with the time user data value

     

     

    • Like 1

    Share this post


    Link to post
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


    • Recently Browsing   0 members

      No registered users viewing this page.

    YOUTUBE CHANNEL:

    ABOUT US:

    C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :) Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
    ×
    ×
    • Create New...