[4547] Re: Python API documentation / 管理者
Thank you for pointing out.
I omitted them, so I add them in Ver4.2.2.
2014-06-10 15:35
[4562] Re: Re: Python API documentation / Nick
Thank you for adding the constructors.
Is syntax highlighting possible in version 4?
Also, how to have fixed font in output (log) window?
2014-06-13 12:16
[4570] Re: Re: Re: Python API documentation / 管理者
Syntax highlight is not supported in Metasequoia 4.
A font in output window is "Font" in the configuration, and it is also used for the whole GUI.
2014-06-16 13:31
[4572] Python API documentation / Nick
OK. Thank you.
What does MQPoint.normalize do? Does it return an MQPoint?
For MQSystem.newAngle(head, pitch, bank, the angles are in degrees, yes?
I have an annoying bug with the Script Editor but sorry I am unable to give exact instructions to replicate it because I cannot see a pattern.
I have Metasequoia 4.2.2 on Windows 8.1 32 bit with onboard Intel graphics.
Sometimes when I click on a line in the input window when editing a script, the input window jumps/scrolls to another line.
Sometimes the line is a page down or a page up.
Feature request:
Maybe add a Scripts folder path to Configuration>File so open dialog in Script Editor starts in the Script folder and not the folder where MQO file was opened.
2014-06-16 14:41
[4575] Python API documentation / Nick
OK the bug I mentioned is when the input window has lost focus, but you scroll to a line you wish to edit and then click on that line.
Clicking on the line gives the input window focus but when the input window regains focus it scrolls back to where the cursor was placed when it lost focus previously.
2014-06-16 20:37
[4576] Python API documentation / Nick
I forgot to mention a minor typographical error in the API documentation.
The following MQDocument methods have the same description as you can see.
deleteObject Delete the object in this document.
getObjectIndex Delete the object in this document.
2014-06-16 20:40
[4578] Re: Python API documentation / 管理者
>OK. Thank you.
>
>What does MQPoint.normalize do? Does it return an MQPoint?
>
normalize() normalizes the contents, and it does not return anything.
getNormal() returns a normalized vector, and it does not change the contents.
>For MQSystem.newAngle(head, pitch, bank, the angles are in degrees, yes?
Yes, they are in degree.
2014-06-17 12:29
[4581] Python API documentation / Nick
タグが [アナウンス] から [質問] に変更されました。
Thank you.
The camera.py script fails if Ortho projection is set.
Should the script fail for this reason?
If v is an MQVertex I can change the position with v.setPos(newpos) or with v.pos.x, v.pos.y, v.pos.z = x,y,z.
Is there an MQVertex.pos property? There isn't one in the documentation.
Bug Report:
MQSystem.getDocument().object[0].color = MQSystem.newColor(0.0,1.0,0.0) changes the line colour for the object in the Object Properties but the line colour in the 3D display remains the default colour
2014-06-18 21:55
[4582] Not a bug with line color / Nick
タグが [質問] から [アナウンス] に変更されました。
My apologies.
There is not a bug with changing line colour of an object.
I didn't set MQObject.colorValid to 1.
2014-06-19 13:32
[4587] Re: Python API documentation / 管理者
camera.py is just a sample for getting camera information. FOV cannot be used in an orthographic view.
Each component of a position returned by MQVertex.getPos() is read only, and it cannot be changed directly. setPos() is used like the following code:
obj.vertex[0].setPos(MQSystem.newPoint(1,2,3))
2014-06-20 16:55
タグが [アナウンス] から [質問] に変更されました。
Does the code
obj.vertex[0].pos.x
actually do this?
obj.vertex[0].getPos().x
2014-06-21 12:13