|
|
#1 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Question about animation
Hi i want to try and do a skin and i have a question is it possible to do a command or maki that lets a animation start when the music starts ?
I aint refering to the Speaker beat effect on the music i know how to do that and thats not what i want to do. I just want a normal animated layer, id="Example1" image="anim.example" x="5" y="20" w="200" h="200" move="0" autoplay="1" autoreplay="1" speed="50" /> like the one above to start, stop or pause (and just start or stop i dont want the speaker effect like i said) the same time the music starts playing/pause or stop. Ty in advance. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Never mind i figure it out sry for the topic.
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2002
Location: Kingdom of Amber
Posts: 263
|
Hi
You have to start/stop your animation with a script using the onplay() onstop(), onpause() and onresume() functions, the autoplay parameter being set to 0 in the the xml definition. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Thx for answering
. thats what i did but now i stumbled in to another problem i tried to integrate the video, avs even the playlist in the main window and i have 2 problems:1st problem without the playlist editor integrated in the main window: When i have the playlist editor docket/snaped to the main window and also if i have avs/video playing if i move the main window the image in the avs/video stay's put gets all glitchy and its not moving with the rest of the window (only happens with pl docket/snaped also i have not skinned the PL yet). 2nd problem with all of the commponents integrated in to the main window (including playlist) i get a black shape left when i close video/avs (with just having video integrated is fine without avs/playlist). here are my xml configs for the 3 components: <groupdef id="AVSGroup" w="364" h="189" maximum_w="364" maximum_h="189" owner="main,normal" lockto="main,normal"> <component id="InlineAVS" x="0" y="0" w="364" h="189" noshowcmdbar="1" autoopen="0" autoclose="0" disableanimatedrects="1" param="guid:avs" sysregion="1" /> <LayoutStatus id="layoutstatus" x="0" y="-12" w="0" relaty="1" h="10" relatw="1" exclude="{system}" /> </groupdef> <groupdef id="VideoGroup" w="364" h="189" maximum_w="364" maximum_h="189" owner="main,normal" lockto="main,normal"> <component id="InlineVideo" image="bg.main" x="0" y="0" w="364" h="189" noshowcmdbar="1" autoopen="0" autoclose="0" disableanimatedrects="1" param="guid:{F0816D7B-FFFC-4343-80F2-E8199AA15CC3}" sysregion="1" /> <LayoutStatus id="layoutstatus" x="0" y="-12" w="0" relaty="1" h="10" relatw="1" exclude="{system}" /> <groupdef id="PLEGroup" background="pl.bg" w="364" h="189" maximum_w="364" maximum_h="189" owner="main,normal" lockto="main,normal"> <component id="InlinePLE" x="0" y="0" w="364" h="160" noshowcmdbar="1" autoopen="0" autoclose="0" disableanimatedrects="1" param="guid:45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D" /> <LayoutStatus id="layoutstatus" x="0" y="-20" w="-5" relaty="1" h="20" relatw="1" exclude="{system}" /> </groupdef> Maki scripts: Video: #include "../../../lib/std.mi" Global Layout VideoLayout; System.onScriptLoaded() { VideoLayout = newGroupAsLayout("VideoGroup"); VideoLayout.setXmlParam("x","147"); VideoLayout.setXmlParam("y","50"); VideoLayout.setXmlParam("w","364"); VideoLayout.setXmlParam("h","189"); } VideoLayout.onResize(int x, int y, int w, int h) { VideoLayout.setXmlParam("x","147"); VideoLayout.setXmlParam("y","50"); VideoLayout.setXmlParam("w","364"); VideoLayout.setXmlParam("h","189"); } System.onGetCancelComponent(String guid, boolean goingvisible) { if (guid == "{F0816D7B-FFFC-4343-80F2-E8199AA15CC3}") { VideoLayout.hide(); } } System.onLookForComponent(String guid) { if (guid == "{F0816D7B-FFFC-4343-80F2-E8199AA15CC3}") { VideoLayout.show(); return VideoLayout.getObject("InlineVideo"); } } AVS: #include "../../../lib/std.mi" Global Layout AVSLayout; System.onScriptLoaded(){ AVSLayout = newGroupAsLayout("AVSGroup"); AVSLayout.setXmlParam("x","147"); AVSLayout.setXmlParam("y","50"); AVSLayout.setXmlParam("w","364"); AVSLayout.setXmlParam("h","189"); } AVSLayout.onResize(int x, int y, int w, int h) { AVSLayout.setXmlParam("x","147"); AVSLayout.setXmlParam("y","50"); AVSLayout.setXmlParam("w","364"); AVSLayout.setXmlParam("h","189"); } System.onGetCancelComponent(String guid, boolean goingvisible) { if (guid == "{0000000A-000C-0010-FF7B-01014263450C}") { AVSLayout.hide(); } } System.onLookForComponent(String guid) { if (guid == "{0000000A-000C-0010-FF7B-01014263450C}") { AVSLayout.show(); return AVSLayout.getObject("InlineAVS"); } } Playlist: #include "../../../lib/std.mi" Global Layout PLELayout; System.onScriptLoaded() { PLELayout = newGroupAsLayout("PLEGroup"); PLELayout.setXmlParam("x","147"); PLELayout.setXmlParam("y","50"); PLELayout.setXmlParam("w","364"); PLELayout.setXmlParam("h","189"); } PLELayout.onResize(int x, int y, int w, int h) { PLELayout.setXmlParam("x","147"); PLELayout.setXmlParam("y","50"); PLELayout.setXmlParam("w","364"); PLELayout.setXmlParam("h","189"); } System.onGetCancelComponent(String guid, boolean goingvisible) { if (guid == "{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D}") { PLELayout.hide(); } } System.onLookForComponent(String guid) { if (guid == "{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D}") { PLELayout.show(); return PLELayout.getObject("InlinePLE"); } } i would ilke to say i dont necessarily want to add the playlist to the main window probably the only reason i started to try doing it was because of the video problem when it was attached. pls help me with this cause i'm going crazy... |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
I think i found part of the problem the components fail to hide/close properly dont know why...
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Ok i used <windowholder... etc/> in the normal player xml but now when i start a video playback desktopalpha turns off is there anyway to resolve this issue ? ty in advance
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
This is driving me crazy i used <windowholder method but now my skins drawers get messed up if when playback starts if double size is pressed for example... plss anyone help me with this i dont know what to do anymore i've been working 5 days on this video crap... and nothing...
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Since you cant edit messages after a period of time il post again sry, i managed to solve my problems partially i think, damn a good nights sleep is good.
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Ok this will be my last question but i cant find a answer except for my skin when video playback starts it continues without any problem automatically to the next video clip but in my skin i have to push play to make it start playing the next video what am i doing wrong ? (btw i'm using the window kill method in bento for video and avs) and i have tried all kind various options with windowholder. (btw just to make sure, what i mean is it jumps to the next clip but doesnt start playback.)
Last edited by strike105x; 28th April 2009 at 15:56. |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
I'm sry it was a dumb question.I'm tired the next post il make will be with the skin.
|
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Apr 2009
Posts: 10
|
Well i finished it here it is:
strike105x.deviantart.com/art/PSPamp-121442995 ![]() It has 10 Color Themes, as for the Boom! mode i wont say anything, hope you like it |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|