discrepancy with zoom between 4x3 and 16x9(or 720p)
#1
Here are two code snippets from a 4x3 and a 16x9 xml file. Notice in the 4x3 zoom animation I have to set the end's x pos to the same <posx> to get it to end up at the correct x pos with the slide. While in the 16x9 I have to add the slides x number and put the final position.

This is with WindoXML if it matters.

720P
Code:
<control type="group">
            <visible>[Control.IsVisible(50) | Control.IsVisible(51) | Control.IsVisible(54)] + Control.IsVisible(3000)</visible>
   <animation effect="slide" time="300" start="600,0" end="0,0" acceleration="-1">WindowOpen</animation>
   <animation effect="slide" time="200" start="0,0" end="600,0" acceleration="1.1">WindowClose</animation>
            <control type="button">
                <description>Trailer List Scrollbar Up Arrow</description>
                <posx>525</posx>
                <posy>100</posy>
                <width>12</width>
                <height>16</height>
                <texturenofocus>amt-scrollbar-up-arrow.png</texturenofocus>
                <texturefocus>amt-scrollbar-up-arrow-focus.png</texturefocus>
                <onclick>PageUp(2050)</onclick>
                <animation effect="slide" time="0" end="155,0" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" time="0" end="155,0" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
            <control type="scrollbar" id="2050">
                <description>Scroll Bar for Trailer List #50</description>
                <posx>525</posx>
                <posy>116</posy>
                <width>12</width>
                <height>200</height>
                <texturesliderbackground border="4">amt-scrollbar-bg.png</texturesliderbackground>
                <texturesliderbar border="3">amt-scrollbar-bar-nofocus.png</texturesliderbar>
                <texturesliderbarfocus border="3">amt-scrollbar-bar-focus.png</texturesliderbarfocus>
                <textureslidernib>amt-scrollbar-nib-nofocus.PNG</textureslidernib>
                <textureslidernibfocus>amt-scrollbar-nib-focus.PNG</textureslidernibfocus>
                <onleft>50</onleft>
                <onright>2075</onright>
                <showonepage>true</showonepage>
                <orientation>vertical</orientation>
                <animation effect="slide" end="155,0" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="zoom" end="680,116,12,391" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" end="155,0" condition="Control.IsVisible(54)">Conditional</animation>
                <animation effect="zoom" end="680,116,12,338" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
            <control type="button">
                <description>Trailer List Scrollbar Down Arrow</description>
                <posx>525</posx>
                <posy>316</posy>
                <width>12</width>
                <height>16</height>
                <texturenofocus>amt-scrollbar-down-arrow.png</texturenofocus>
                <texturefocus>amt-scrollbar-down-arrow-focus.png</texturefocus>
                <onclick>PageDown(2050)</onclick>
                <animation effect="slide" time="0" end="155,191" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" time="0" end="155,138" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
        </control>

NTSC4x3
Code:
<control type="group">
            <visible>[Control.IsVisible(50) | Control.IsVisible(51) | Control.IsVisible(54)] + Control.IsVisible(3000)</visible>
   <animation effect="slide" time="300" start="600,0" end="0,0" acceleration="-1">WindowOpen</animation>
   <animation effect="slide" time="200" start="0,0" end="600,0" acceleration="1.1">WindowClose</animation>
            <control type="button">
                <description>Trailer List Scrollbar Up Arrow</description>
                <posx>495</posx>
                <posy>100</posy>
                <width>16</width>
                <height>16</height>
                <texturenofocus>amt-scrollbar-up-arrow.png</texturenofocus>
                <texturefocus>amt-scrollbar-up-arrow-focus.png</texturefocus>
                <onclick>PageUp(2050)</onclick>
                <animation effect="slide" time="0" end="185,0" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" time="0" end="185,0" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
            <control type="scrollbar" id="2050">
                <description>Scroll Bar for Trailer List #50</description>
                <posx>495</posx>
                <posy>116</posy>
                <width>16</width>
                <height>200</height>
                <texturesliderbackground border="4">amt-scrollbar-bg.png</texturesliderbackground>
                <texturesliderbar border="3">amt-scrollbar-bar-nofocus.png</texturesliderbar>
                <texturesliderbarfocus border="3">amt-scrollbar-bar-focus.png</texturesliderbarfocus>
                <textureslidernib>amt-scrollbar-nib-nofocus.PNG</textureslidernib>
                <textureslidernibfocus>amt-scrollbar-nib-focus.PNG</textureslidernibfocus>
                <onleft>50</onleft>
                <onright>175</onright>
                <showonepage>true</showonepage>
                <orientation>vertical</orientation>
                <animation effect="slide" end="185,0" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="zoom" end="495,116,16,391" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" end="185,0" condition="Control.IsVisible(54)">Conditional</animation>
                <animation effect="zoom" end="495,116,16,338" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
            <control type="button">
                <description>Trailer List Scrollbar Down Arrow</description>
                <posx>495</posx>
                <posy>316</posy>
                <width>16</width>
                <height>16</height>
                <texturenofocus>amt-scrollbar-down-arrow.png</texturenofocus>
                <texturefocus>amt-scrollbar-down-arrow-focus.png</texturefocus>
                <onclick>PageDown(2050)</onclick>
                <animation effect="slide" time="0" end="185,191" condition="Control.IsVisible(51)">Conditional</animation>
                <animation effect="slide" time="0" end="185,138" condition="Control.IsVisible(54)">Conditional</animation>
            </control>
        </control>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Both should work.

The ending X coordinate and starting X coordinate are only used if the zoom needs applying in the X direction. In this case it does not.

So you should theoretically be able to throw in whatever you like for the X coord there.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
OT: didn't want to start a new thread

I have the following:

[CODE]<animation effect="zoom" start="100,0" end="100,100" center="75,475" delay="160" time="20" condition="Control.HasFocus(100)">Conditional</animation>[/quote]

The problem is there is always a one pixel line that shows.

Could, if either the x or y starting zoom is 0, not show the control.

I have a series of these with delays, so you get a grid pattern before the animation completes.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
discrepancy with zoom between 4x3 and 16x9(or 720p)0