Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
coopdaddyswag
Binge Watcher

Fresh PanelSet has a Child Count of 2 already

I am trying to create a OverhangPanelSetScene, where I am pretty much making a settings page.

Before even doing any sort of modification, I notice that the 


print "PANEL SET SIZE", m.top.panelSet.getChildCount()


returns a size of 2, but I don't see how it is possible since I have not created or appended any children that I've defined.

What gives?

The two items added:


ITEM            <Component: roSGNode:Poster> =
{
    audioGuideText: ""
    bitmap: <Component: roSGNode:Bitmap>
    bitmapHeight: 45
    bitmapMargins: <Component: roAssociativeArray>
    bitmapWidth: 45
    blendColor: -1
    enableColorBlending: false
    failedBitmap: <Component: roInvalid>
    failedBitmapOpacity: 1
    failedBitmapUri: ""
    height: 0
    loadDisplayMode: "noscale"
    loadHeight: 0
    loadingBitmap: <Component: roInvalid>
    loadingBitmapOpacity: 1
    loadingBitmapUri: ""
    loadStatus: "ready"
    loadSync: false
    loadWidth: 0
    uri: ""
    width: 0
    childRenderOrder: "last"
    clippingRect: <Component: roAssociativeArray>
    enableRenderTracking: false
    inheritParentOpacity: true
    inheritParentTransform: true
    muteAudioGuide: false
    opacity: 1
    renderPass: 4
    renderTracking: "disabled"
    rotation: 0
    scale: <Component: roArray>
    scaleRotateCenter: <Component: roArray>
    translation: <Component: roArray>
    visible: false
    change: <Component: roAssociativeArray>
    focusable: false
    focusedChild: <Component: roInvalid>
    id: ""
}
ITEM            <Component: roSGNode:Poster> =
{
    audioGuideText: ""
    bitmap: <Component: roSGNode:Bitmap>
    bitmapHeight: 45
    bitmapMargins: <Component: roAssociativeArray>
    bitmapWidth: 45
    blendColor: -1
    enableColorBlending: false
    failedBitmap: <Component: roInvalid>
    failedBitmapOpacity: 1
    failedBitmapUri: ""
    height: 0
    loadDisplayMode: "noscale"
    loadHeight: 0
    loadingBitmap: <Component: roInvalid>
    loadingBitmapOpacity: 1
    loadingBitmapUri: ""
    loadStatus: "ready"
    loadSync: false
    loadWidth: 0
    uri: ""
    width: 0
    childRenderOrder: "last"
    clippingRect: <Component: roAssociativeArray>
    enableRenderTracking: false
    inheritParentOpacity: true
    inheritParentTransform: true
    muteAudioGuide: false
    opacity: 1
    renderPass: 4
    renderTracking: "disabled"
    rotation: 0
    scale: <Component: roArray>
    scaleRotateCenter: <Component: roArray>
    translation: <Component: roArray>
    visible: false
    change: <Component: roAssociativeArray>
    focusable: false
    focusedChild: <Component: roInvalid>
    id: ""
}
0 Kudos
1 REPLY 1
coopdaddyswag
Binge Watcher

Re: Fresh PanelSet has a Child Count of 2 already

I can confirm this with the ScenegraphTutorial, using panel sets. Upon initialization, there are two children inside the Panel Set. After initialization, there are 4 children.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.