GithubHelp home page GithubHelp logo

c4d_face_puppet's Introduction

Live Puppeteering Through Cinema4D

fish

Felt like getting a little wild one Friday night after a long week of work. I started by trying to use mediapipe in C4D. Then I remembered for some reason I had created a little project would push out data from C4D over usb to an arduino that was hooked up to some stepper motors. I had also built a little pan tilt head in the past so slop all those things together and bam.

You need to have the python library for mediapipe and pyserial accessable from within C4D. Starting at like R22 I think C4D started ignorning the pythonpath environment variable. So this plugin will add anything from the pythonpath env variable to the sys.path. This may or may not be desirable for you.

The C4D plugin has two parts. This my not be the most logical way to do this but I was adapting some older work to get this up super fast. There is the regular "Face" dialog that just opens up a big play button. This can be used to start and stop the webcam and mediapipe process. Then there is the FaceObject which is an object so that it can get picked up in the main thread of C4D's event loop. But all it really does at the moment is grab the first 468 items in C4D and move them to the position of one of the facial landmarks being provided by mediapipe.

I am then just using c4d constraints to move the object that is then hooked up with an xpresso tag to the python tag which is what is sending data over usb. It's duct tape and paper clips but it kind of works.

c4d_face_puppet's People

Contributors

ninglesby avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.