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: 
lumpenprole
Channel Surfer

Re: Beta Scene Graph Components / Row List problem

So, I'm trying out the Row List component. Running this code doesn't throw any errors, but it immediately restarts the roku box.

Here's the xml:

<?xml version="1.0" encoding="utf-8" ?> 
<component name="carouselScene" extends="Scene" >

<script type="text/brightscript" uri="pkg:/components/scripts/CarouselSceneScript.brs" />

<children>

<RowList
id="contentRow1"
itemComponentName="Poster"
translation="[0, 50]" />


</children>
</component>


And here's the script:

Sub init()
?"CarouselSceneScript:init()"
m.contentRow1 = m.top.findNode("contentRow1")
configureRowList()
m.top.setFocus(true)
end Sub

Sub configureRowList()

content = createObject("RoSGNode", "ContentNode")
content.TITLE = "Test Row"

for x = 1 to 21
thisCon = content.createChild("ContentNode")
thisCon.HDPOSTERURL = "pkg:/locale/default/images/book-covers-" + x.ToStr() + ".jpg"
end for

m.contentRow1.rowItemSize = [[335,463]]
m.contentRow1.content = content

end Sub


I've put stops in and stepped through it. It doesn't throw errors and crashes the box when it goes to draw.
0 Kudos
EnTerr
Roku Guru

Re: Beta Scene Graph Components

@Roku - do you guys have a significant number of developers in North California?

If so, organize a meetup to present this new paradigm. Otherwise, make it a webinar/web conference.

Free bonus: record that presentation and make it available for future play.
0 Kudos
dratio
Visitor

Re: Beta Scene Graph Components

could you provide code for a working sample of a button node?
0 Kudos
lumpenprole
Channel Surfer

Re: Beta Scene Graph Components

"dratio" wrote:
could you provide code for a working sample of a button node?


And maybe a simple RowList?
0 Kudos
RokuRobB
Streaming Star

Re: Beta Scene Graph Components

Here is a button sample. You basically need to define an observer for the buttonSelected field:

SimpleButtonScene.xml
<?xml version="1.0" encoding="utf-8" ?>

<component name="SimpleButtonScene" extends="Scene" >

<script type="text/brightscript" uri="pkg:/components/SimpleButtonScene.brs" />

<children>
<Button id="button" text="Press Me!" />
</children>

</component>

SimpleButtonScene.brs
function init()
m.button = m.top.findNode("button")
m.button.ObserveField("buttonSelected", "onButtonSelected")
m.button.SetFocus(true)
end function

function onButtonSelected() as void
print "Button Pressed"
end function

A RowList sample is coming soon.
0 Kudos
EnTerr
Roku Guru

Re: Beta Scene Graph Components

Couple of questions:
  1. For which players will the scenic graph API/firmware be made publicly available? All model# > 2200 or ...

  2. Can you point some notable examples of channels that already use scenical graphing, so we can see its goodness? (e.g. if you ask Marmalade for examples of games made with their SDK, they'd tell you Plants v Zombies, Cut the Rope, some of the Angry Birdses and Tetrises...)
0 Kudos
RokuJoel
Binge Watcher

Re: Beta Scene Graph Components

"EnTerr" wrote:

  • For which players will the scenic graph API/firmware be made publicly available? All model# > 2200 or ...
  • Can you point some notable examples of channels that already use scenical graphing, so we can see its goodness? (e.g. if you ask Marmalade for examples of games made with their SDK, they'd tell you Plants v Zombies, Cut the Rope, some of the Angry Birdses and Tetrises...)


* Should be all players other than 3.1 legacy devices.
* Not really, but you can get a good idea from the Roku Home Screen and mGo channels.

We just released the beta, for trailblazers to get started blazing trails.

- Joel
0 Kudos
svanderw
Visitor

Re: Beta Scene Graph Components

When is the planned general availability of the Scene Graph firmware?
I'd like to use it, but don't want to have to wait too long for releasing our channel due to lack of GA support.

Scott V
0 Kudos
RokuJoel
Binge Watcher

Re: Beta Scene Graph Components

We are not disclosing the launch date at this time. This Beta is to get feedback on technical issues and improvements that could make the scene graph a better experience for developers when it is launched.

- Joel
0 Kudos
renojim
Community Streaming Expert

Re: Beta Scene Graph Components

Is this where we should reports bugs in the v7.0 firmware or is there somewhere else to do that?

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos