Imports Moho file (Papagayo, Jlipsync) and adds an automatic blinks #24080

Closed
opened 2010-10-01 03:38:30 +02:00 by Yousef Harfoush · 24 comments

Project: Blender Extensions
Tracker: Py Scripts Contrib
Python: 3.2
Blender: 2.66
Author(s): Yousef Harfoush
Script name: Lipsync Importer & Blinker
Homepage: http://blenderartists.org/forum/showthread.php?t=197408
Wiki page: http://wiki.blender.org/index.php?title=Extensions:2.5/Py/Scripts/Import-Export/Lipsync_Importer
Category: Import Export
SVN Download: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/io_import_lipSync_Importer.py
Status: Open

%%%1.It imports Moho file generated from either Papagayo or Jlipsync which they are a free lipsync editor for 2d software and plots their keys in the timeline using the shape keys, you can select an offset to a certain frame and change the shape key value (how much it the keys is pronounced) and ease in ease out curves.
2.adds an automatic blinks specified by count and spacing.%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Contrib **Python**: 3.2 **Blender**: 2.66 **Author(s)**: Yousef Harfoush **Script name**: Lipsync Importer & Blinker **Homepage**: http://blenderartists.org/forum/showthread.php?t=197408 **Wiki page**: http://wiki.blender.org/index.php?title=Extensions:2.5/Py/Scripts/Import-Export/Lipsync_Importer **Category**: Import Export **SVN Download**: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/io_import_lipSync_Importer.py **Status**: Open %%%1.It imports Moho file generated from either Papagayo or Jlipsync which they are a free lipsync editor for 2d software and plots their keys in the timeline using the shape keys, you can select an offset to a certain frame and change the shape key value (how much it the keys is pronounced) and ease in ease out curves. 2.adds an automatic blinks specified by count and spacing.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

This task was automatically closed as archived as part of migration, because it was determined to be no longer active.

The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the #Addons project page for more information on the workflow.

This task was automatically closed as archived as part of migration, because it was determined to be no longer active. The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the #Addons project page for more information on the workflow.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

%%%hi,
thanks for your script, could you please provide some example files.
a simple set up .blend & Papagayo file, maybe a before & after would be good too.
I have the original Blender Papagayo scripts also.
You could look here for them : http://sites.google.com/site/androcto/Home/south-park-blender
Thanks for your participation.%%%

%%%hi, thanks for your script, could you please provide some example files. a simple set up .blend & Papagayo file, maybe a before & after would be good too. I have the original Blender Papagayo scripts also. You could look here for them : http://sites.google.com/site/androcto/Home/south-park-blender Thanks for your participation.%%%
Author
Member

%%%here is tut link on vimeo
http://www.vimeo.com/15442522

it explains how to use the script, and i will upload a blend soon

@brandon i'm checking your site, i will report back%%%

%%%here is tut link on vimeo http://www.vimeo.com/15442522 it explains how to use the script, and i will upload a blend soon @brandon i'm checking your site, i will report back%%%
Author
Member

%%%when are my script will be added, if any update needed i'm ready%%%

%%%when are my script will be added, if any update needed i'm ready%%%
Member

%%%added to contrib, sorry for the delay.
%%%

%%%added to contrib, sorry for the delay. %%%

%%%Hi,

we gave you bf-extensions rights, meaning that:

  • you can work on svn in contrib/ folder

  • we invited you to our commits mailing list, please subscribe, so
    that your commit will be shown instead of being hanged on

  • you should have received a mail already about it, if not,
    please leave a line here, thx

  • please move your script in contrib folder in svn (if it's not
    there already)

  • reference is: http://wiki.blender.org/index.php/Dev:Py/Sharing

  • assigning to you, so that you are responsible for maintenance

  • finally, if not done already, we'll move this tracker, so
    please check the tracker_url and eventually commit in bf-extensions

Thanks and welcome aboard! :)%%%

%%%Hi, we gave you bf-extensions rights, meaning that: - you can work on svn in contrib/ folder - we invited you to our commits mailing list, please subscribe, so that your commit will be shown instead of being hanged on - you should have received a mail already about it, if not, please leave a line here, thx - please move your script in contrib folder in svn (if it's not there already) - reference is: http://wiki.blender.org/index.php/Dev:Py/Sharing - assigning to you, so that you are responsible for maintenance - finally, if not done already, we'll move this tracker, so please check the tracker_url and eventually commit in bf-extensions Thanks and welcome aboard! :)%%%
Author
Member

%%%added a blink options to do automatic blinking%%%

%%%added a blink options to do automatic blinking%%%

%%%[canned response]

Hi, can you prepare a wiki page with a bit of a manual about how to
use this?

See
http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons

Thanks!%%%

%%%[canned response] Hi, can you prepare a wiki page with a bit of a manual about how to use this? See http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons Thanks!%%%
Author
Member

%%%added more option and updated some attr.%%%

%%%added more option and updated some attr.%%%
Author
Member

%%%New UI: separated the blinker from the lipsync with a menu%%%

%%%New UI: separated the blinker from the lipsync with a menu%%%
Author
Member

%%%fixed according to the new renaming, add Jlipsync moho file support%%%

%%%fixed according to the new renaming, add Jlipsync moho file support%%%
Member

%%%Hi!
Since your script is now in bf-extensions' svn (contrib|trunk) we have deleted the current attachments to avoid that end-users could reach this page and get the wrong version of your script.
Note that your script may have api changes or small maintenence changes applied in SVN.
Please retrieve your script from SVN before updating SVN to avoid mis-versioned scripts.
Thanks!%%%

%%%Hi! Since your script is now in bf-extensions\' svn (contrib|trunk) we have deleted the current attachments to avoid that end-users could reach this page and get the wrong version of your script. Note that your script may have api changes or small maintenence changes applied in SVN. Please retrieve your script from SVN before updating SVN to avoid mis-versioned scripts. Thanks!%%%

%%%When this script is installed it appears permanently in the Operator panel in the Tools pop out.
Is this correct behavior?

I'm using 2.62 RC1 r43946
Thanks for looking :)
%%%

%%%When this script is installed it appears permanently in the Operator panel in the Tools pop out. Is this correct behavior? I'm using 2.62 RC1 r43946 Thanks for looking :) %%%
Member

%%%Hi,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.

Thanks for your understanding & patience during these Exciting Times.
Brendon.%%%

%%%Hi, Due to changes to the api including the merging of bmesh, several addons are outdated. Please, if you are the author of an addon check your script with blender revision 44256 or newer. That is builds made After blender 2.62 official release. I would ask that updates be made to your addon before the Blender 2.63 release. 6-8 weeks away. This allows time for the api to become more exposed & bmesh to stablize furthur. If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions. At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed" this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened. Thanks for your understanding & patience during these Exciting Times. Brendon.%%%

%%%Hello,

Thanks for this plugin, Yousef. Good work, really clearly written and simple to understand.

Which is good, coz it wasn't doing quite what I wanted it to do. My models have several bones set up as sliders to drag back and forth, each slider a bone set up to drive the shape-key for that phoneme.

So I added a new "Multi-Bone" mode to this plugin, which searches the bone-names for strings ending in the relevent phoneme-names, and if it finds then uses a "multiBone" mode to set the shape-keys instead of the standard many-aspects-of-one-bone mode.

It sets the z-location of each bone to reflect the phoneme-keys, coz that's what I needed. Presumably it'd be fairly simple to add a UI to pick which dimention to move.

It sets the location between zero and 1, and then I'm happy to just Y-scale/translate if needed in the curve editor. Again, this would presumably be fairly simple to put in the UI if someone has the need.

I don't think I've broken any way it could have been used previously, only added functionality, with the exception of any armatures which bizarely are named with post-fixes matching the phonemes which were meant for something else.

Here's my updated script anyway:

http://dalliance.net/blender/io_import_lipSyncMultibone_Importer.py

This was my first experience wanting to script/hack blender, and yet again I find myself damned impressed at how well made the whole thing is, how easy it was to see what was going on in this importer and the rest of the system, and hope I can keep my brain concentrated on the animation project rather than now drifting off into coding random Blender plugins to do pretty things.

;)%%%

%%%Hello, Thanks for this plugin, Yousef. Good work, really clearly written and simple to understand. Which is good, coz it wasn't doing quite what I wanted it to do. My models have several bones set up as sliders to drag back and forth, each slider a bone set up to drive the shape-key for that phoneme. So I added a new "Multi-Bone" mode to this plugin, which searches the bone-names for strings ending in the relevent phoneme-names, and if it finds then uses a "multiBone" mode to set the shape-keys instead of the standard many-aspects-of-one-bone mode. It sets the z-location of each bone to reflect the phoneme-keys, coz that's what I needed. Presumably it'd be fairly simple to add a UI to pick which dimention to move. It sets the location between zero and 1, and then I'm happy to just Y-scale/translate if needed in the curve editor. Again, this would presumably be fairly simple to put in the UI if someone has the need. I don't think I've broken any way it could have been used previously, only added functionality, with the exception of any armatures which bizarely are named with post-fixes matching the phonemes which were meant for something else. Here's my updated script anyway: http://dalliance.net/blender/io_import_lipSyncMultibone_Importer.py This was my first experience wanting to script/hack blender, and yet again I find myself damned impressed at how well made the whole thing is, how easy it was to see what was going on in this importer and the rest of the system, and hope I can keep my brain concentrated on the animation project rather than now drifting off into coding random Blender plugins to do pretty things. ;)%%%

%%%Hi Adam, you might want to look at your updated script as I gave it a try and it wouldn't load into blender v2.68.
Atribute Error:!RestrictContentext! object has no attribute "scene" (then a whole lot more language from planet Zid as far as I can see,) line 190 and 294 are also mentioned further on but like I say, It might make sense to others, but not to me. Reloading the original lip sync and blinker also gets an error message, but it does load and activate. Pity it didn't work for me because I have the same problem you outlined and something that does not require EXACTLY the same setup as was envisioned by the original authour would be handy.
Manually doing lip syncing is about as much fun as trying to type on a cheese grater!!!%%%

%%%Hi Adam, you might want to look at your updated script as I gave it a try and it wouldn't load into blender v2.68. Atribute Error:!RestrictContentext! object has no attribute "scene" (then a whole lot more language from planet Zid as far as I can see,) line 190 and 294 are also mentioned further on but like I say, It might make sense to others, but not to me. Reloading the original lip sync and blinker also gets an error message, but it does load and activate. Pity it didn't work for me because I have the same problem you outlined and something that does not require EXACTLY the same setup as was envisioned by the original authour would be handy. Manually doing lip syncing is about as much fun as trying to type on a cheese grater!!!%%%
Author
Member

i want to know why this is flagged "Archived", and not in dev. anymore?
although i don't add new features but it's liable to bug fixes.

i want to know why this is flagged "Archived", and not in dev. anymore? although i don't add new features but it's liable to bug fixes.

Added subscriber: @RenatoMeneses

Added subscriber: @RenatoMeneses

Awesome addon, thank you!
I can't understand. Early I can use with successful the addon, but now I can't.
Attached error file and file that I tried to run.
https://drive.google.com/file/d/0Bzj31Gys7eoxOFAydEdldEtmM0k/edit?usp=sharing

Awesome addon, thank you! I can't understand. Early I can use with successful the addon, but now I can't. Attached error file and file that I tried to run. https://drive.google.com/file/d/0Bzj31Gys7eoxOFAydEdldEtmM0k/edit?usp=sharing
Author
Member

i can't use the link you added please re-post it's text file here: http://www.pasteall.org

i can't use the link you added please re-post it's text file here: http://www.pasteall.org

Sorry, I'm new in report errors.

http://www.pasteall.org/54153

Sorry, I'm new in report errors. http://www.pasteall.org/54153
Author
Member

thats because of the relative paths option turned On, disable it then it will work.

i should find a solution to that soon -iAw-.

thats because of the relative paths option turned On, disable it then it will work. i should find a solution to that soon -iAw-.
Sign in to join this conversation.
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#24080
No description provided.