AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Anime Related Topics > Fansub Groups

Reply
 
Thread Tools
Old 2008-10-19, 10:48   Link #41
D4RK-PH0ENiX
Mad Karaoker
*Fansubber
 
 
Join Date: Sep 2006
Age: 28
Send a message via ICQ to D4RK-PH0ENiX Send a message via MSN to D4RK-PH0ENiX Send a message via Yahoo to D4RK-PH0ENiX Send a message via Skype™ to D4RK-PH0ENiX
thanks :3 now trying it out
__________________
Featured in: sola [Lunar], Mai Otome Zwei OVA (EP 2 and 3) [Static-Subs], Kiddy Grade 2 Promo [Ayu], Darker than Black [anime-keep], Tokimeki Memorial (ED2) [C1anime], Polyphonica [yesy], Basilisk (OP1-ED1) [moo-shi], Hayate no Gotoku [SS-Eclipse], Claymore [Eclipse], Shana 2 promo [Eclipse], Manabi Straight [gg-Eclipse], Shining Tears [Conclave], Nanoha StrikerS [yesy], Venus Versus Virus [GNU], Otome wa Boku ni Koishiteru (EP11 insert) [GNU], Tokyo Majin [Static-Subs], Kyoshiro [Static-Subs], Kanon 2006 (EP23, EP24 inserts) [SS-Eclipse], Beet Exellion [dp], Super Robot Wars (OP2,ED2) [dp], Hidamari Sketch [gg], Umisho (ED) [Yoroshiku], School Days [Conclave] and more to come...

Also in a bunch of unreleased stuff
D4RK-PH0ENiX is offline   Reply With Quote
Old 2008-10-19, 11:41   Link #42
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
Well why don't you people who are interested in this script join #gwi-afx @ irc.rizon.net to discuss about it? I'll be sure to add any improvements and give any tips to using this script.
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK
pichu is offline   Reply With Quote
Old 2008-10-20, 14:50   Link #43
shinjipierre
Computer graphist
 
 
Join Date: Dec 2005
Location: Paris, France
Age: 31
You should make a simple video tutorial, makes things easier....

I've been using after effects for YEARS, I even script SFX in a studio and I don't even understand what you're typing

at least, one could see how it behaves quickly.

I would have been interested if i was still making karaokes ^^
__________________
http://www.remipierre.fr - Some of my computer graphics work
shinjipierre is offline   Reply With Quote
Old 2008-10-20, 15:56   Link #44
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
Quote:
I've been using after effects for YEARS, I even script SFX in a studio and I don't even understand what you're typing
Well... I've been using/coding in JavaScript for more than 10 years. JS Objects in AFX is no different from any other JS calls I've ever used.

I made a sample project already, showing simple examples. It's very simple. I'm planning to make a more advanced one (perhaps involving with Particles playground and shatters -- particles playground needs positions and shattering works the best on syllable per layer scheme).

I'm still fixing my syllables per layer, because it's not as good as I'd like it to be. Currently, the syllable per layer can do the following:

1. Layer timed to the syllable with specified lead-ins and lead-outs: KRKLayer::l( styles , true )
2. Layer timed to the line with specified lead-ins and lead-outs: KRKLayer::l( styles , "all" ) -- added in 0.45 (which I can't think of an application for this)

EDIT: ! I found its application. Set Opacity=100% for Start=0% and End=100% (with one keyframe), and Set the rest opacity=0% with a range selector (the script has a bug and requires you to have a range selector) of ALL. Then you will have the following effect:

One Syllable per layer for the duration of the entire line
Therefore, you can apply all kinds of effects to that syllable. You can use expressions to apply effects or use the given property from krk to apply effects.

3. Layer timed to absolute syllable timing: KRKLayer::l( styles , true ) with markers set with unnorm.

All somehow needs to interact with Text Animators' Opacity ON/OFF selectors.

Yes, I watched your tutorial, and after you generated your stuff and decided to do things manually, I immediately gave up on it ;p Karaoke are supposed to be:

1. Template Design
2. Generate
3. Debug and Fixes on the template (not on the generated karaoke)
4. Regenerate
5. Production

It seems that the AFX scripts now provide are:

1. Template design
2. Generate
3. Hardlabor manual work to get things right
4. Testing
5. Production

The one I wrote and my original plan was to jump from template/code design directly to generating and production without any intermediate manual work--that's what Karaoke is all about, imo.

THOUGH, I prefer to have a GUI to generate the codes (the codes in used for the script is nothing more than configurations).
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK

Last edited by pichu; 2008-10-20 at 17:47.
pichu is offline   Reply With Quote
Old 2008-10-23, 20:25   Link #45
D404
Banned
 
Join Date: Aug 2006
pichu, im pretty sure most people here still have no idea how to use your karaoke script at all (myself included, even after listening to you talk about for forever). I think you should go with shinji's idea and make simple video tutorial.
D404 is offline   Reply With Quote
Old 2008-10-24, 17:21   Link #46
NicestBoat
Junior Member
 
Join Date: Feb 2008
Quote:
Originally Posted by D404 View Post
pichu, im pretty sure most people here still have no idea how to use your karaoke script at all (myself included, even after listening to you talk about for forever). I think you should go with shinji's idea and make simple video tutorial.
I believe the quickstart tutorial pichu made ( it is on his google page ), is very easy to follow, he also provided a simple sample project for those that want to see it in practice and want to make sure they got everything right. I was able to follow his tutorial on my first try and never tried doing AFX karaoke before, nor am I that good at AFX in general. ( I tried the other karaoke importer scripts, but didn't end up using them as they were either limited or required a lot of repetitive copy/paste manual labor ). Instead of a video tutorial, I believe he should write more documentation on both how his script works as well as a more detailed text animator tutorial ( even if this should be the user's job to learn by himself ).
NicestBoat is offline   Reply With Quote
Old 2008-10-25, 17:20   Link #47
Yuudai-kun
Junior Member
 
Join Date: Dec 2006
First off, thank you pichu for creating that script and sharing it with the rest of us

So, i have tried your script even though i have no scripting expierence at all (except wiggle, heh). You provided a great start with your get started guide and i was able to reproduce the effects on my first try and started developing a karaoke effect myself. However, i can't figure out how to use the position data.
I've tried something like this:
Quote:
.p('effect("Particular")(8)', { syl: true, pos: true }),
but i don't know how to use the position data in the expression.

It would be great if someone could explain that further.
Yuudai-kun is offline   Reply With Quote
Old 2008-10-25, 17:43   Link #48
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
Quote:
Originally Posted by Yuudai-kun View Post
First off, thank you pichu for creating that script and sharing it with the rest of us

So, i have tried your script even though i have no scripting expierence at all (except wiggle, heh). You provided a great start with your get started guide and i was able to reproduce the effects on my first try and started developing a karaoke effect myself. However, i can't figure out how to use the position data.
I've tried something like this:

but i don't know how to use the position data in the expression.

It would be great if someone could explain that further.
nice!

to use the positional data, you need the following requirements:

1. make sure you styled your .ass with the right font and weight (bold or regular) and style (italics or not).

2. in your KRK comp, make sure you set the right font size (or else, you can renormalize with your expressions).

setFontSize( "kanji" , 36 )
(the default size is 1px [it's in parts of 1/1000, so it's fairly accurate])

3. type in the config in your KRK text layer (and you have it correct)
4. Use slider control or point control. Slider is 1d, point is 2 or 3D, but it will dump out 2D positions there.

5. if you're using slider control: write this in your KRK text layer:

.p( "effect('Slider Control')" , {syl:true, pos:true} ) or something

6. Add keyframes to your slider control. 0 means beginning of the syllable, 100 means end of the syllable. Align them the same way as you did before.

7. use expressions in your slider control. If you're using center text: use this--
Code:
var o={w:200,h:200}
640 - o.w/2 + value
if 640 is the center of your text. Note, this part is very restrictive-- i'm thinking of making it a bit easier... var o will get replaced with the right stuff. w means the width of the text, and h is the height (as if it's vertical text--but don't count on h just yet)

8. In your particular's emitter, position XY: use the following expressions:

[ effect("Slider Control")(1) , value[1] ]

adjust the particular emitter's vertical pos to match where you want to go.

9. I think that should be it, but make sure you tweak the values ... you can tweak it after you generated the layer. Make sure you use SOLO option to see only your template layers.

Thanks for trying this out.
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK

Last edited by pichu; 2008-10-28 at 03:06.
pichu is offline   Reply With Quote
Old 2008-10-28, 03:01   Link #49
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
AFX KRK v0.50

I changed a few parameters and the codes to include the following features:
  • You no longer are required to paste your JSON. You can now paste your .ass into your text layer in KRK comp. (source text is recommended because of the UTF-8) The program will parse the .ass internally. SO you will no longer need to style your .ass to get the positions; they're obtained through AFX.
  • Positions are obtained directly in AFX. The default property for positions are Point expression control named "Position". This process is extremely slow, so be warn about it. Note, if your layer names contain an underscore (_), positions won't be processed. The reason for this is because if you are using the same layer over and over again, the program will add an underscore to it, so essentially, it's pointless to generate the positions over and over again.
  • Positions linking from non-text layers must link to an existing text layers with those syllables via layer names -- commands-- .p( "effect.Position" , {syl: true, pos: "layerName"} )
  • Auto-zero word spacing is implemented. Just set your Text, More Options, Anchor Point Grouping to "Word." It will obtain zero-word spacing transparently, allowing you to do per syllable effects. Spacing Slider control has been deprecated in this version.

Notes about positions:

You create keyframes from 0 to 100 with Point Control. 0 means top/left, and 100 means bottom/right within the marker areas. They will get denormalized to the right values. The values obtained from the script are relative to transform.position, so you can add the following expression into your position property to get the correct reference:

Code:
transform.position + value
Although I do not plan to use any presets or any settings with this script, I added "KRK Syllable" to assist in obtaining the positions.

Currently, positions can only be obtained for one-lined, per syllable stuff. It will not work for overlapped syllables (i.e. negative \k timings) or to get only the line positions.

Again, this script is very slow, and it may take 5-10 minutes to generate your karaoke. I'll optimize it later on. Please comment and provide me some feedbacks. Thanks.

Because of these requirements, this script will only work in CS3 (or higher perhaps)


A sample of the positional key (tested using very simple effects because I'm more interested in getting the codes to work)

IMAGE

Edited: I uploaded a sample project (using Trapcode Particular's Glow Trail preset) -- you'll see how it works. BTW, 0.52 is updated, because I'm still trying to squeeze out all of the mistakes I made.
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK

Last edited by pichu; 2008-10-28 at 08:50.
pichu is offline   Reply With Quote
Old 2009-08-16, 11:03   Link #50
Kyuu9sha
#9
 
 
Join Date: Aug 2009
Location: Behind you
Age: 23
Send a message via MSN to Kyuu9sha Send a message via Skype™ to Kyuu9sha
afxkrk

Hi, I tried this script but I couldn't get it working somehow... I got somekind of an error that says "undefined is not an object"... I've tried 0.55, 0.56b and 0.56c and none of them seem to be working.

I really need help on this one.
Kyuu9sha is offline   Reply With Quote
Old 2009-08-22, 19:30   Link #51
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
that's because you most likely didn't match the name exactly what you typed in your layers.
They're case sensitive, and that if you have trailing white spaces in the names, make sure you remove them too. The version I started working on prevents that problem by caching every single objects in your compositions instead of using default AE's method, which you can't do anything about it.
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK
pichu is offline   Reply With Quote
Old 2009-08-23, 13:03   Link #52
Kyuu9sha
#9
 
 
Join Date: Aug 2009
Location: Behind you
Age: 23
Send a message via MSN to Kyuu9sha Send a message via Skype™ to Kyuu9sha
Ok thank you. I'll see if I can get it working now. I'll post again if I get more errors.

EDIT: I still get the same error on line 564 and there is probably more errors that I get. It says null is not an object. I could send the file perhaps if you could have a look on it unless you're not too busy.

Last edited by Kyuu9sha; 2009-08-23 at 13:27. Reason: Still get the error
Kyuu9sha is offline   Reply With Quote
Old 2009-08-23, 14:10   Link #53
crash-kun
AFX nub
*Fansubber
 
 
Join Date: Nov 2008
Location: California
Age: 25
Post up the file, I'll take a look at it if you would like.
crash-kun is offline   Reply With Quote
Old 2009-08-24, 08:38   Link #54
Kyuu9sha
#9
 
 
Join Date: Aug 2009
Location: Behind you
Age: 23
Send a message via MSN to Kyuu9sha Send a message via Skype™ to Kyuu9sha
Ok thanks Crash. I did what you said in that guide but apparently it didn't seem to work.

http://www.megaupload.com/?d=EDR0VUDJ Here's the link to that file.

Oh yeah, do you have adobe CS4 or CS3? I also have CS3 so I could send the same file for CS3 as well.
Kyuu9sha is offline   Reply With Quote
Old 2009-08-24, 14:39   Link #55
crash-kun
AFX nub
*Fansubber
 
 
Join Date: Nov 2008
Location: California
Age: 25
Alright what I did to fix it was deleted the keyframes on the "Text->Source Text" property on your template layer. I really have no idea why it was keyframed but deleting the keyframes seems to have fixed the problem.

PS: I use CS4 so it was fine.
crash-kun is offline   Reply With Quote
Old 2009-08-24, 14:51   Link #56
Kyuu9sha
#9
 
 
Join Date: Aug 2009
Location: Behind you
Age: 23
Send a message via MSN to Kyuu9sha Send a message via Skype™ to Kyuu9sha
Could you send me the fixed version perhaps so I could see what you did? I don't know how to do that. I tried to remove the keyframes but didn't seem to get it right.
Kyuu9sha is offline   Reply With Quote
Old 2009-10-20, 20:24   Link #57
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
Krk 0.60

http://code.google.com/p/aftereffectskrk/downloads/list


I got a few pm's on how difficult is the script, so I've decided to change the configurations a bit... I hope this makes more sense. I deprecated the javascript functional evaluations in favor of XML configurations. However, the XML config does nothing but to call back the old js functions i created earlier.

The old configuration is obsolete in this version, since it's a hackish way of implementing the configurator. The new way is described as follows:

1. The timeline marker is left untouched
2. KRK Composition needs to have a text layer which has the Karaoke .ass codes only in the source text.
3. Drag any compositions into KRK Composition if you want them to be processed. Make sure they're below your text layer containing the .ass lyrics.
4. Check on Shy Layer if you don't want them to be processed. Check off the Shy Layer (hide) to process them.
5. Open Layer comments.
6. Type in XML Configurations next to the composition to process them.


As a side note, you cannot undo any changes made in the comments once you swapped out of the comment mode. To prevent this from happening, please edit these XML configurations with an external editor, then paste the XML config back into the box.

XML Guideline
Code:
<layer name="layerName" space="0" no="0">
        <line name="styleName" layer="" syl="0" />
        <animator name="animatorName" syl="1" unnorm="start|end" />
        <property name="property.name" syl="1" pos="0" unnorm="1" />
        <setting name="layerProperty" property="property" value="0" />
</layer>
layer:

* name is the layer's name
* space is the zero-space override. Note, you cannot disable zero-space if the anchor point group is set to Word.
* no is a little optimization in calculations, where the KRK Syllable won't be generated. However, if you enable 'no', you won't be able to collect positional values.
* alias = alias name (instead of based on name + repeated index)

line: (abbreviate to l)

* name is the style name (alias: style)
* syl indicates if the line is a per-syllable line
* layer is the layer number in .ass (by default, it selects all layers)
* unnorm determines if the current line has unnormalized lead-in/lead-out.

animator: (abbreviate to a)

* name is the text animator's name
* syl is if it's a syllable timing (if syl=0, then it's a line timing)
* unnorm is if it's unnormalized

property (abbreviate to p)

* name is the afx eval name for the properties (copy and paste from expressions)
* syl is if it's a syllable timing (if syl=0, then it's a line timing)
* unnorm is if it's unnormalized
* pos is to generate positional keys
* link -- link to another property (it requires either layer OR comp and layer) (if you need the property from the same layer, just make your own expression within the same layer)
* comp -- comp link
* layer -- layer link

(Properties need at least one keyframe to process, so make sure you have a dummy keyframe if you want to link properties) Example:

<property name="transform.position" link='effect("Point Control")(1)' comp="Karaoke" layer="karaokeLayer" />

setting: (abbreviate to s)

* name is the afx object name
* property is the property of that object
* value is the set value.

--- OR: (For Layer properties)

* name: property name within that layer.
* layer: Layer template name that the property will set to.

-- Use this to link layers.



I hope this makes sense... If not refer to the following screenshot:

http://stats.pichu.org/samplekrk.jpg
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK

Last edited by pichu; 2009-10-21 at 09:29. Reason: Updated to 0.62 which has some error checks + layer links.
pichu is offline   Reply With Quote
Old 2009-10-20, 23:26   Link #58
salty
3D MAXEEER
 
 
Join Date: Sep 2009
Location: Island Of Salt
will try this new update. thanks
salty is offline   Reply With Quote
Old 2009-10-24, 10:55   Link #59
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
I've decided to use SVN of Google Codes rather than the download section, because it's faster for me to deploy test codes and fixes out there for people to use and test right away.

You can fetch it and view revisions here:
http://code.google.com/p/aftereffect...nk/krk/krk.jsx

I added a few features since then:

Code:
<copy from="TemplateComp" layer="karaoke" name="karaokeName" />
<layer name="karaokeName" alias="myAlias" disabled="yes" precomp="yes" blend="soft light" threed="yes">
	<line name="romaji" layer="0" line="0,1,2" syl="0,1,2" />
	<line name="romaji" layer="1" />
	<line name="romaji" layer="0" line="4" />
	<a name="syllable" syl="yes" />
	<a name="lead inout" />
</layer>
<copy /> copies the template layer from another composition (make sure that the source composition is in KRK composition, and the name is composition name in KRK comp) to the current composition, so it's useful if you want all your templates in one composition, and the generated ones in other comps.

Basically, I'm precomposing (it's automatically collapsed) all the generated layers one-by-one, have them disabled (eye off), set the blend mode to soft light . The point of precomposing is to allow using text layers in layer controls such as Trapcode particular, which would require text layers to be precomposed and 3D. I haven't tested this part with an actual effect, but I already tested this feature to ensure it does the right job, but if anyone wants to test it, be my guest.

Also using bezier keyframes is fixed. It was a simple typo in the script (temoralEase instead of temporalEase).
__________________
A small tool I made, and Learn how to make fansub karaoke in After-Effects: AFXKRK
pichu is offline   Reply With Quote
Old 2010-04-05, 19:30   Link #60
Shinji Sama
karaoker
 
Join Date: Aug 2009
Location: ottawa
i've problem with the script xZ
i never had it before
anyway :O
here my aep
http://www.mediafire.com/?g4jzjdfk2n5

i hope someone can help xZ
Shinji Sama is offline   Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:57.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
We use Silk.