Graphics

 View Only
  • 1.  Center Word Wrap Text or Center a Group?

    Posted 01-03-2014 15:09
    I have a text object that uses Word Wrap. Is there a way to force the text object to center itself on the screen (IE: word wrap creates two lines of text, center the two lines on the screen vertical/horizontal). Or if that is not possible, is there a way to force a group (text object inside a group) to center on the screen?

    Chuck


  • 2.  RE: Center Word Wrap Text or Center a Group?

    Posted 08-25-2015 17:48
    I am looking for the same thing. I am making a generic title page and I want the text to always be in the middle no matter how many lines it takes up. Has anyone found a solution?

    #XPression


  • 3.  RE: Center Word Wrap Text or Center a Group?

    Posted 08-26-2015 10:22
    Hey guys,

    You can use visual logic to do this.

    Text object boundingbox.height connect to Divide block

    Set divide to /2.5 and connect to Text object Y position

    This will force centre the text vertically.

    Red

    #XPression


  • 4.  RE: Center Word Wrap Text or Center a Group?

    Posted 08-26-2015 17:09
    Hi Red,

    Visual logic is the right track but it didn't work as expected. The text was vertically aligned but at the bottom of the screen instead of in the middle. Adding an offset of 484 fixed this issue.

    Here is my visual logic structure in case anyone else has the same problem:

    Text object boundingbox.height connect to Divide Block Base

    Set divide to /2.5 and connect to Offset Base

    Set Offset to 484 and connect to Text object Y position

    #XPression


  • 5.  RE: Center Word Wrap Text or Center a Group?

    Posted 08-26-2015 17:31
    Hey David,

    I forgot I put the text in a group to centre it in the screen but I prefer your idea of using Offset.

    Thanks,

    Red

    #XPression