Message 1 of 3
Not applicable
05-15-2014
05:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi There,
I am looking for a way to create a turntable of my model using I logic.
The code I already have is a mix of multiple forum posts. but I can't get it to work.
Can I get some help on this.
I want to rotate the view around the Z axis from the starting point where the camera is.
When using this code, The camera goes first to a certain point and I don't know where that is.
The final output for the app wil be a html turntable to put on websites.
Thanks in advance.
' Get the active camera.
Dim cam As Camera
cam = ThisApplication.ActiveView.Camera
Dim tg As TransientGeometry
tg = ThisApplication.TransientGeometry
' Define the number of steps in the animation.
Dim steps As Integer
steps = 40
' Iterate the specified number of steps.
Dim i As Integer
For i = 1 To steps
cam.Fit()
cam.Perspective = 0
cam.ViewOrientationType= 10764
'cam.UpVector = tg.CreateUnitVector(0, 0, 0)
cam.Eye = tg.CreatePoint(0,i,0)
cam.ApplyWithoutTransition
Next
Solved! Go to Solution.