3 posts / 0 new
Last post
ForumImport
Offline
Last seen: 9 years 5 months ago
Joined: 09/22/2009 - 18:47
ViewMatrix/MatrixView?

In the K-3D 0.8.0.1 release on OS X, the following code returns a NoneType for camera_view and gives this error:
ERROR: No plugin factory named: ViewMatrix
Script:
——
#python
import k3d
doc = context.document
camera_view = k3d.plugin.create("ViewMatrix", doc)
——
What's the difference between:
http://www.k-3d.org/wiki/MatrixView
and
http://www.k-3d.org/wiki/ViewMatrix
?
The code above works with MatrixView, however. How are these plugins commonly used?

ForumImport
Offline
Last seen: 9 years 5 months ago
Joined: 09/22/2009 - 18:47
ViewMatrix/MatrixView?

Sorry for the confusion, there was a round of plugin name changes for 0.8 so our terminology is consistent ... "MatrixView" is the correct name, "ViewMatrix" was the old name.
You can use MatrixView to produce what some toolkits refer to as a "look" matrix - one that orients an object based on a "look" vector and an "up" vector.
Cheers,
Tim

ForumImport
Offline
Last seen: 9 years 5 months ago
Joined: 09/22/2009 - 18:47
ViewMatrix/MatrixView?

Thanks! So, should I use a MaxtrixView rather than a FrozenMesh, if I wanted to create a "fixed camera", i.e.: the user can not change its position nor target?

Log in or register to post comments