Hi, I am trying to make cameraview rotate around a target instantly,
but i dont know where i went wrongly,
import rhinoscriptsyntax as rs
for i in range(360):
rs.Redraw()
viewPort = rs.CurrentView()
tar = rs.ViewTarget(viewPort)
cameraPlane = rs.ViewCameraPlane(viewPort)
rotated = rs.RotatePlane(cameraPlane, 1 * i, [0,0,1])
newView = rs.ViewCPlane(viewPort, cameraPlane)
first, what is that things let me control (wait) the timing or redraw and set it according to seconds milliseconds like how it works in grasshopper timer, or in processing frameRate command
secondly,
how can i make the rotation function work instantly, without affecting/be affected by the running/stop of the scripts, and make the view turn around INSTANTLY, until i ask it to stop rotating or i end the script
I think there is something goes wrong when i applied the script,
the script is running, and still running, until now
i even opened new file, i deleted the script from grasshopper and python,
but the view port still rotating
Hm… That’s strange. I don’t use Grasshopper now, so the script was intended for “pure” Python script use.
(To be used in the Python script editor)
mmmm, yes, that is the only thing you can do, because it take all the processing
even when you delete the python script, and close the grasshopper file, and even start a new file, the Rhino file keep spinning, and even when i open a new rhino file, without closing, its still rotating
i need the rotation to work without interrupting the process of running the script
Hmm, you don’t know for sure? It should say in the title bar “Educational”. If you have a real student version, you should be able to update it to the latest service release.