Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty-fy the python outputs #2409

Open
jab0707 opened this issue Oct 13, 2022 · 0 comments
Open

Pretty-fy the python outputs #2409

jab0707 opened this issue Oct 13, 2022 · 0 comments
Assignees
Milestone

Comments

@jab0707
Copy link

jab0707 commented Oct 13, 2022

The python display for things like module states is pretty clunky. For example, when doing a module state dump on a viewscene the camera rotation and lookat print out as lsit of lits with the old listtype included. However, get module state seems to have cleaned this up. Overall, it would be nice if all of the printing in the python consol matched the epected input. For example, setting camera rotation expects a list of 4 numbers, not a list of 4 lists.

scirun_get_module_state('ViewScene:0','CameraRotation')
[0, 0, 0, 0]
scirun_dump_module_state('ViewScene:0')
'[Ambient, 0.2]
[AxesSize, 10]
[AxesVisible, 1]
[AxesX, 100]
[AxesY, 100]
[BackgroundColor, Color(0,0,0)]
[CameraDistance, 1013.04]
[CameraDistanceMinimum, 1e-10]
[CameraLookAt, [[listElement, -15.2] [listElement, 37.5] [listElement, 200.45] ]] #this is one of the problem printouts
[CameraRotation, [[listElement, -0.552601] [listElement, -0.306225] [listElement, 0.760364] [listElement, -0.150119] ]]
[ClippingPlaneD, [[, 0] [, 0] [, 0] [, 0] [, 0] [, 0] ]]
[ClippingPlaneEnabled, [[, 0] [, 0] [, 0] [, 0] [, 0] [, 0] ]]
[ClippingPlaneNormalReversed, [[, 0] [, 0] [, 0] [, 0] [, 0] [, 0] ]]
... #truncated for ease of reading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants