- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
  
- 纳金币
- 17488
- 精华
- 1
|
Summary
The Zoom Control Gadget can be used to zoom in/out of a layer using a slider control.
Category
Sample Assets
Author
Jeremy Tomlinson
Difficulty
Beginner
Time to Complete
N/A
Downloads
Click Here
to download the associated files.
Demonstration:
Click here to view sample
![]()
Setup Ins***ctions:
Place the objects that you want to zoom in/out on in a seperate layer. In the attached sample we are zooming in on a Cube, so the Cube is on a Layer called, "Cube Layer".
Select the Camera attached to the Cube Layer and change the following:
* Change the Z Position from -600 to 0.
* Change the Z Pivot from 0 to 650.
Create another layer to put your Zoom Control on. In the attached sample the Zoom Control is on a Layer called, "Zoom Control Layer". Select this layer in Anark Studio, right-click and select, "Import Component" to import the Zoom Control Gadget.
After the Zoom Control component is added to the Zoom Control Layer, double-click on the component to go inside the component.
Select the "Slider" component and look in the Inspector Palette for the " roperty to Control" option. Note that we're using "Scene["Cube Layer"].Camera.pivot.z" in the attached sample. This is controlling the Z pivot of the Camera that exists on the Cube Layer.
That's it! Preview the presentation to see it in action.
If you have any questions post them on the Anark F***m at
http://f***m.anark.com/
|
|