Add a __str__ Method to Matutils Matrices so print(matrix) Shows Columns as Columns #29651

Closed
opened 2011-12-19 06:58:29 +01:00 by Andrew Hale · 3 comments
Member

%%%Currently when printing matrices to the console the repr function is used. This means that the printed output is shows columns as rows. This is because matrices are input as a series of columns. This patch adds a str function so that print(matrix) shows the matrix with columns as columns.%%%

%%%Currently when printing matrices to the console the repr function is used. This means that the printed output is shows columns as rows. This is because matrices are input as a series of columns. This patch adds a str function so that print(matrix) shows the matrix with columns as columns.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%committed r42748. with edits.%%%

%%%committed r42748. with edits.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#29651
No description provided.