C4D as Live Presentation Tool

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  01 January 2018
C4D as Live Presentation Tool

Happy new year, everyone. I’m wanting to use c4d as a live visualization tool to convey some concepts. I want to do it 'live' not rendered. I would voice-record while playing a c4d file and record the session using screen recording app. The idea is to use c4d as if it were Flash or Unity. No rendering. The “presentation” wouldn’t be playable outside c4d and that’s ok for this. The new viewport features can make things sexy looking…and live dynamics combined w/xpresso are promising. One of the most essential things for such an endeavor is eluding me: how I can use expresso to control playback. I want to be able to stop/play the timeline with buttons or hotkeys…loop different segments of the timeline... and bounce to specific frames. Programs like Flash, Muse, Director do this kind of thing.  I see that the expresso node for ‘Time’ has no inputs…one can operate on the output of time…but not drive the input.  I don’t see how I can manipulate the playback in a non-linear fashion. Can anyone point me towards any way to programmatically control the timeline during playback?
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.

Last edited by IceCaveMan : 01 January 2018 at 09:47 PM.
 
  01 January 2018
Originally Posted by FritzK: https://developers.maxon.net/docs/C...ocument.SetTime

This might help you.

This does give me hope! The major elements look to be present: the ability to programmatically set desired start and end frame programmatically for an interactive branch. Looping of segments is there too.

Looks like I may need to wade into Python.
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.

Last edited by IceCaveMan : 01 January 2018 at 10:41 PM.
 
  01 January 2018
Good stuff, Bullit.  Some of this helps w/my goals, but I don't see any pre-built tools with explicit timeline control. May need to cook it up myself.
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.
 
  01 January 2018
There is also https://www.4dpublish.com/ that allow you to put c4d scene in a pdf an allow you to do way more stuff.

Here a script for play beetwen two frames (here set at the timeline range)

import c4d
def main():
    # Backup original time
    originalTime = doc.GetTime()
    # Loop through all frames of active document
    fps = doc.GetFps()
    startFrame = doc.GetMinTime().GetFrame(fps)
    EndFrame = doc.GetMaxTime().GetFrame(fps)
    for frame in xrange(startFrame, EndFrame+1):
        
        # Set current frame
        time = c4d.BaseTime(frame, fps)
        doc.SetTime(time)
        # Animate document at current frame
        doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_INTERNALRENDERER)
        c4d.EventAdd()
    
    # Restore to original time
    doc.SetTime(originalTime)
    doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_INTERNALRENDERER)
    c4d.EventAdd()
if __name__=='__main__':
    main()
__________________
http://graphos.xyz/
https://github.com/gr4ph0s
 
  01 January 2018
Originally Posted by gr4ph0s: There is also https://www.4dpublish.com/ that allow you to put c4d scene in a pdf an allow you to do way more stuff.

Here a script for play beetwen two frames (here set at the timeline range)

import c4d
def main():
    # Backup original time
    originalTime = doc.GetTime()
    # Loop through all frames of active document
    fps = doc.GetFps()
    startFrame = doc.GetMinTime().GetFrame(fps)
    EndFrame = doc.GetMaxTime().GetFrame(fps)
    for frame in xrange(startFrame, EndFrame+1):
        
        # Set current frame
        time = c4d.BaseTime(frame, fps)
        doc.SetTime(time)
        # Animate document at current frame
        doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_INTERNALRENDERER)
        c4d.EventAdd()
    
    # Restore to original time
    doc.SetTime(originalTime)
    doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_INTERNALRENDERER)
    c4d.EventAdd()
if __name__=='__main__':
    main()

Yes. 4dPublish rocks in a number of ways, including getting interactive content into a PDF.  There are options to export specific spans that can be triggered by buttons upon export. I'm just looking for that same kind of timeline control while within c4d. I'll check out your code here. Huge thanks for this!
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.

Last edited by IceCaveMan : 01 January 2018 at 08:10 PM.
 
  01 January 2018
Just a quick note about c4d as a presentation tool. As I explore it's really a testament to progress Maxon has made w/the new core and the addition of viewport AO and reflections. The new media engine certainly factors in as well.

Consider that during runtime (no rendering) you can have the following features:
-Live video playing on any plane
-Doodle on the screen
-Live Animation
-Live Dynamics--including where you can drag objects around and cause live attract/repulse, collisions, etc.
-Animate camera moves, switch cameras

I did some tests where I had simulations playing simultaneously w/video and screen AO/reflections. Playback was outstanding. Yes you do get aliasing and no the AO/ScreenSpace Reflections aren't perfect. But I think this could be quite useful.
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.

Last edited by IceCaveMan : 01 January 2018 at 10:31 PM.
 
  01 January 2018
Another tool that is a player in all this is the Interaction Tag. With it you can seamlessly puppet objects and even trigger Python scripts.
__________________
C4D R19 Studio, MODO 902, VRAY, Octane, Cycles. PC/Mac.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:33 AM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.