Demo select-by-ID in dynamic callbacks
Reported by lindsay.kay (at xeolabs) | August 18th, 2010 @ 02:16 AM
This is an awesome use case for dynamic callbacks - worthy of a demonstration:
SceneJS.material(
function(data) {
var updates = data.get("updates");
if (updates && updates["materials"]) {
var mat = updates["materials"];
this.setBaseColor(mat.baseColor);
}
},
// Subnodes...
)
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) August 31st, 2010 @ 09:49 AM
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.