纳金网

标题: Zoom Control Gadget [打印本页]

作者: Asen    时间: 2011-10-8 14:45
标题: Zoom Control Gadget


           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/
            



作者: 菜刀吻电线    时间: 2012-3-27 23:23
爱咋咋地!

作者: 菜刀吻电线    时间: 2012-4-19 23:19
不错不错,收藏了

作者: tc    时间: 2012-6-27 23:22
跑着去顶朋友滴铁





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5