Post Reply 
[PSP] Rcomage v1.1.1 - new RCO manipulation tool
Author Message
Vegetano1
$urf

Posts: 9,083.2507
Threads: 397
Joined: 2nd Mar 2007
Reputation: 6.06988
E-Pigs: 2756.6280
Offline
Post: #14
RE: [PSP] Rcomage v1.0.0 - new RCO manipulation tool
basicly its like this:

imagetree >> where you add an image entry
Objecttree >> where you give objects value's and redirect to an image in image tree, if you animate this object you will unload to animtree(meaning redirecting to an anim wich uses the object)
animtree >> Here you will animate the object with basic anim commands

Here is an exsample:
in this sample you see 1 image added for a panel icon and 13 images added for a animation in imagetree
in the object tree you see all object names and redirections to images added in imagetree, the objects you can use in a anim
Note the "panelb" is only redirected to an image in image tree and is't used in a anim sequence, this image is static you can change things like RGB alpha etc etc
All other Objects will be used in a anim to make sure the anim is launched there is a unload command in the line of object "av1c" >> onLoad="anim:anim_vizc", you only have to use the unload command once and does't matter in whot object line.
Now in anim_vizc you see the "colourchange object" command with this command you can change the duration of the change the RGB channels and for this anim i used the alpha channel value to show and not-show images to make a animation sequence.

Commands wich can be used in animtree:
Delay: <Delay time="600" />
Colourchange object: <ColourChange object="object:Object_name" duration="2000" unknown1="0x0" red="1" green="1" blue="1" alpha="0.3" />
FireEvent: <FireEvent event="anim:anim_name" />
Resize object: <Resize object="object:Object_name" duration="400" unknownInt1="0x0" width="0.7" height="0.7" unknownFloat4="1" />
Rotate Object: <Rotate object="object:Object_name" duration="0" unknown1="0x0" unknown2="0x0" unknown3="0x0" angle="0" />
Fade object: <Fade object="object:Object_name" duration="0" unknownInt1="0x0" transparency="0" />
Move object: <Move object="object:infoicon_glow" duration="0" unknownInt1="0x0" x="111" y="-38" unknownFloat4="0" />

take note that you have to use a delay after every different command you use,. eg you have used colourchange object with a duration of "0" you have to make a delay of atleast 1 else the command will be given 0 to execute and the PSP will crash,. ;p (just see whot i did in the xml sample i posted)


XML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
		<ImageTree>
			<Image name="bar" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/bar.gim" format="gim" compression="zlib" />
			<Image name="v1" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v1.gim" format="gim" compression="zlib" />
			<Image name="v2" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v2.gim" format="gim" compression="zlib" />
			<Image name="v3" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v3.gim" format="gim" compression="zlib" />
			<Image name="v4" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v4.gim" format="gim" compression="zlib" />
			<Image name="v5" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v5.gim" format="gim" compression="zlib" />
			<Image name="v6" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v6.gim" format="gim" compression="zlib" />
			<Image name="v7" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v7.gim" format="gim" compression="zlib" />
			<Image name="v8" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v8.gim" format="gim" compression="zlib" />
			<Image name="v9" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v9.gim" format="gim" compression="zlib" />
			<Image name="v10" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v10.gim" format="gim" compression="zlib" />
			<Image name="v11" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v11.gim" format="gim" compression="zlib" />
			<Image name="v12" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v12.gim" format="gim" compression="zlib" />
			<Image name="v13" src="C:\Users\vegeta\Desktop\V1update\resource\photoplayer/v13.gim" format="gim" compression="zlib" />
		</ImageTree>
		<ObjectTree>
			<Page name="page_rssplay_controlpanel" unknownInt0="0x111" onInit="nothing" onCancel="nothing" unknownEvent5="nothing" unknownEvent7="nothing">
				<Group name="rssplay_controlpanel_group" posX="0" posY="45" objectScale="0" redScale="0" greenScale="0" blueScale="0" alphaScale="0" width="0" height="0" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing">
					<Plane name="panelb" posX="0" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="1" width="480" height="84" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:bar" unknownInt18="0x0"></Plane>
					<Plane name="av1c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="anim:anim_vizc" image="image:v1" unknownInt18="0x0"></Plane>
					<Plane name="av2c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v2" unknownInt18="0x0"></Plane>
					<Plane name="av3c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v3" unknownInt18="0x0"></Plane>
					<Plane name="av4c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v4" unknownInt18="0x0"></Plane>
					<Plane name="av5c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v5" unknownInt18="0x0"></Plane>
					<Plane name="av6c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v6" unknownInt18="0x0"></Plane>
					<Plane name="av7c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v7" unknownInt18="0x0"></Plane>
					<Plane name="av8c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v8" unknownInt18="0x0"></Plane>
					<Plane name="av9c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v9" unknownInt18="0x0"></Plane>
					<Plane name="av10c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v10" unknownInt18="0x0"></Plane>
					<Plane name="av11c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v11" unknownInt18="0x0"></Plane>
					<Plane name="av12c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v12" unknownInt18="0x0"></Plane>
					<Plane name="av13c" posX="-150" posY="0" objectScale="0" redScale="1" greenScale="1" blueScale="1" alphaScale="0" width="112" height="64" posUnknown="0" scaleWidth="1" scaleHeight="1" elementScale="1" iconOffset="0x0" onLoad="nothing" image="image:v13" unknownInt18="0x0"></Plane>
				</Group>
			</Page>
		</ObjectTree>
		<AnimTree>
			<Animation name="anim_viz">
				<ColourChange object="object:av13" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av1" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av1" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av2" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av2" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av3" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av3" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av4" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av4" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av5" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av5" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av6" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av6" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av7" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av7" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av8" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av8" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av9" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av9" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av10" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av10" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av11" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av11" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av12" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<ColourChange object="object:av12" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="0" />
				<ColourChange object="object:av13" duration="1000" unknown1="0x0" red="1" green="1" blue="1" alpha="1" />
				<Delay time="5000" />
				<FireEvent event="anim:anim_viz" />
			</Animation>
		</AnimTree>

Note: you see i set the alpha for all objects used in the animation  to "0" in object tree,. the alpha will now only be used once the animation is started,..
Unlike the "panelb" object wich has a alpha of "1" because else it won't show,. this object is animated with a colourchange alpha value,. ;)

i hope this will get you on the way a little,. this sample is taken from my V1a theme in the control panel when watching a photo,. its suposed to look like a slideshow,. if you want the images move like a animtion,. set the duration for all colourchange object's to "0" and all delay value's to 100



Make loads of $$!! it wurks!!
[Image: csbanner_anim_03.gif]
Signed Homebrew by bsanehi & OMightyBuggy
http://endlessparadigm.com/forum/showthr...?tid=25707
Spoiler for My miniBlog:
24/10/2009 09:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [PSP] Rcomage v1.0.0 - new RCO manipulation tool - Vegetano1 - 24/10/2009 09:08 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)

 Quick Theme: