View Full Version : Spinner controllers for FOV, Target
olas72 05-12-2009, 07:05 AM Been looking through the documention but I can't seem to find a controller for updating FOV and target distance. Does anyone know if these exist?
example in the docs:
spinner ball_radius "Ball radius" controller:($ball.radius.controller)
i want something like (this doesn't work)
spinner lens_spinner "Lens (mm):" controller($mcam.fov.controller)
|
|
ZeBoxx2
05-12-2009, 08:51 AM
myCamera = freeCamera()
myCamera.fov.controller = Bezier_Float()
rollout roll_test "test" (
spinner spn_test "test" controller:myCamera.fov.controller
)
createDialog roll_test
Should work fine - what was the problem in getting your code to work (there's a missing ':', but I suspect that's a typo)?
Note that in my code above, I explicitly assign a controller to the .fov parameter. Otherwise, the controller: part of the spinner definition would fail. There's tons of reasons why that controller: thing could fail, by the way, and I'd sooner do all the work in the spinner's own events to prevent such issues.
CGTalk Moderation
05-12-2009, 08:51 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.