Page 1 of 1

Image dimension from Manager to WD

PostPosted: Mon Aug 11, 2014 2:41 pm
by alverman
There is no way to know, in WD, the size of an image on a layer of Manager?

Thank you

Re: Image dimension from Manager to WD

PostPosted: Mon Aug 11, 2014 3:51 pm
by Dennis Kuypers
Hi,

Use
Code: Select all
PBProjectRefresh


followed by the following commands:

Code: Select all
VGetAssetMediaWidthByID,VarName,FolderID,FileID
VGetAssetMediaHeightByID,VarName,FolderID,FileID
VGetAssetMediaWidthByName,VarName,AssetName
VGetAssetMediaHeightByName,VarName,AssetName


Regards
Dennis

Re: Image dimension from Manager to WD

PostPosted: Mon Aug 11, 2014 6:06 pm
by alverman
That calculation should I do to make sure that an image that is not as wide as the screen, positions with a margin on right or left?

Thank you, Alberto

Re: Image dimension from Manager to WD

PostPosted: Mon Aug 11, 2014 6:17 pm
by alverman
I have made ​​a difference less than the width of the screen image divided 120.

It seems to work

Re: Image dimension from Manager to WD

PostPosted: Mon Aug 11, 2014 6:54 pm
by alverman
It is not very precise !!
The screen is 1024x768 and the pictures are all within the limit of 1024 as width and height as 768.
It should be simple but I can not stand to do the images all at the same distance of the edge

Re: Image dimension from Manager to WD

PostPosted: Wed Aug 13, 2014 9:17 am
by Dennis Kuypers
Hello,

It is not very clear to me what you want to archive. Can you please tell me what the result should be?

You can change the layer resizing mode (Select Layer, then change aspect ratio in the Inspector Tab). (maybe this helps?)

Regards
Dennis

Re: Image dimension from Manager to WD

PostPosted: Wed Aug 13, 2014 6:43 pm
by alverman
Sorry Dennis :)

Should I always place the right edge of the image near the right edge of the projection .... whatever the width of the image

Thanks, Alberto

Re: Image dimension from Manager to WD

PostPosted: Wed Aug 13, 2014 6:50 pm
by alverman
I find the center of the image
VDivide,A_Img_W,A_Img_W,2

Having a screen 1024x768 take off half the width of the projection
VSubtract,A_Img_XPos,512,A_Img_W

Divide by 64 (512/8) to find what I need to move the image
VDivide,A_Img_XPos,A_Img_XPos,64

So it works but it is not the images of various sizes are not always in the same position on the right.

I hope I explained :)

Alberto