Return a matrix using the operator settings and view context.
Parameters: |
|
---|---|
Returns: | the matrix from the context and settings. |
Return type: |
Add an object using the view context and preference to to initialize the location, rotation and layer.
Parameters: |
|
---|---|
Returns: | the newly created object in the scene. |
Return type: |
Return scale which should be applied on object data to align it to grid scale
Scale an operators distance values by the grid size.
Return a single image used by the object, first checking the texture-faces, then the material.
Returns the camera space coords for a 3d point. (also known as: normalized device coordinates - NDC).
Where (0, 0) is the bottom left and (1, 1) is the top right of the camera frame. values outside 0-1 are also supported. A negative ‘z’ value means the point is behind the camera.
Takes shift-x/y, lens angle and sensor size into account as well as perspective/ortho projections.
Parameters: |
|
---|---|
Returns: | a vector where X and Y map to the view plane and Z is the depth on the view axis. |
Return type: |