lumpenprole
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015
09:36 AM
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:
And here's the script:
I've put stops in and stepped through it. It doesn't throw errors and crashes the box when it goes to draw.
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.
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015
01:42 PM
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.
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.
dratio
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2015
10:27 AM
Re: Beta Scene Graph Components
could you provide code for a working sample of a button node?
lumpenprole
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2015
11:53 AM
Re: Beta Scene Graph Components
"dratio" wrote:
could you provide code for a working sample of a button node?
And maybe a simple RowList?

RokuRobB
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2015
09:43 AM
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.
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.
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2015
11:40 AM
Re: Beta Scene Graph Components
Couple of questions:
- 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...)

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2015
12:25 PM
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
svanderw
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2015
03:27 PM
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
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

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015
10:49 AM
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
- Joel
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015
06:00 PM
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
-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.
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.