Nisar, The Anchor patch is really only a convenience patch for multiple Math patches. e.g. for the top left corner you may use those formulas:
billboardXPosition = (-screenWidth/2.0) + xOffset + (imageWidth / 2) billboardYPosition = (screenHeight/2.0) - yOffset - (imageHeight / 2) No magic here. Regarding the column/row layout you may exchange "screenWidth" and "screenHeight" with something that fits your needs. (e.g. imageWidth*columnCount and imageHeight*rowCount) However you may post an image to show what you want to achieve? Best, Achim On 08.05.2013, at 12:24, Nisar Ahmed wrote: > thanks Achim, but I also want to scale the billboard on its pivot point and I > think its only possible with anchor position patch. > > > On Wed, May 8, 2013 at 3:11 PM, Achim Breidenbach <[email protected]> wrote: > Hello Nisar, > > the Anchor patch deals with the problem that you have to put in the center > coordinates of an image into the Billboard patch. It helps you if you want to > position an image just excatly in a certain corner. > > For an regular grid, you just need to do the math of dividing the screen in > those sections. This could be put in two Mathematical Expression patches: > > billboardXPosition = (-screenWidth/2.0) + (screenWidth / columCount) * > (columIndex + 0.5) > billboardYPosition = (screenHeight/2.0) - (screenHeight / rowCount) * > (rowIndex + 0.5) > > > best, > > Achim > > On 08.05.2013, at 11:58, Nisar Ahmed wrote: > > > Dear List, > > > > Does anyone know patch similar to anchor position with an option of > > defining custom positions? > > > > The anchor position patch has 9 points with which I can make 3x3 grid but i > > need 4x2, 3x2 etc... as well > > > > Nisar > > _______________________________________________ > > Do not post admin requests to the list. They will be ignored. > > Quartzcomposer-dev mailing list ([email protected]) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com > > > > This email sent to [email protected] > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

