Graphics

 View Only
  • 1.  How to iterate a text objects in a group

    Posted 04-09-2018 21:16
    My scene has a group with 10 text objects. I need a simple example of how to iterate the group of text objects.


  • 2.  RE: How to iterate a text objects in a group

    Posted 04-09-2018 22:43
    I figured it out.


    Dim text as xpTextObject
    Dim group as xpBaseObject

    Self.GetObjectByName("MyGroup", group)

    if group.GetFirstChild(text) then
    ' do something with text.Text

    do while text.GetNextSibling(text)
    ' do something with text.Text
    loop
    end if


    #XPression