Placing a curve editor into a parameters tab, Viewer controls, Setting maximum viewer resolution in the interface – Apple Shake 4 User Manual

Page 386

Advertising
background image

386

Chapter 14

Customizing Shake

Placing a Curve Editor Into a Parameters Tab

In the ui directory:

nuiPushControlGroup(“colorExpr”);

nuiGroupControl(“Lookup.rExpr”);
nuiGroupControl(“Lookup.gExpr”);
nuiGroupControl(“Lookup.bExpr”);
nuiGroupControl(“Lookup.aExpr”);

nuiPopControlGroup();

//Makes all curves invisible by default
registerCurveFunc(“colorExpr”);
//This makes all curves visible by default
registerCurveFuncVisible(“colorExpr”);

gui.colorControl.curveEditorDirection = 0;
//When it is 1, the layout is vertical
//When this equals 0, the layout is
//horizontal

This code loads a Curve Editor embedded inside the Parameters tab. The first six lines of
code simply group parameters together. The last line then attaches the parameters to
the Curve Editor embedded in the Parameters tab.

Viewer Controls

This section discusses Viewer settings and onscreen controls.

Setting Maximum Viewer Resolution in the Interface

In the ui directory:

gui.viewer.maxWidth = 4096;
gui.viewer.maxHeight = 4096;

Advertising