Skip to content

Latest commit

 

History

History

orx-chataigne

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

orx-chataigne

Expose variables to Chataigne and any other applications that can interface with it. The current implementation makes use of the OSC protocol and supports Double and ColorRGBa.

Usage

Defining the variables

class SceneVariables : ChataigneOSC(OSC(portIn = 9005, portOut = 12001)) {
        val myRadius: Double by DoubleChannel("/myRadius")
        val myOpacity: Double by DoubleChannel("/myOpacity")
        val myColor: ColorRGBa by ColorChannel("/myColor")
}

Initiate

 val animation = SceneVariables()

Update time

animation.update(seconds)

Use the variables

animation.myRadius
animation.myOpacity
animation.myColor

Example project

Find the Chataigne example project in /resources/timeline_example_chataigne.noisette which works together with demo project /src/demo/kotlin/ChataigneOSCDemo.kt

Demos

ChataigneOSCDemo

source code

ChataigneOSCDemoKt