Metasequoia BBS

| New message | Normal | Tree |
Status
Tag
Keyword
[9677] flip horzitanly :S / cant mirror in code dsnt let me select mirrored fa
[Request,help! ] Response
import MQSystem

doc = MQSystem.getDocument()
objects = [None, None]
objnum = doc.numObject

for oi in range(0, objnum):
    obj = doc.object[oi]
    if obj is None:
        continue
        
    if obj.name == "obj1":
        objects[0] = obj

for obj in objects:
    if obj is None:
        continue
        
    obj.mirrorType = 1  # Separate at center
    obj.mirrorAxisX = 1  # Disable X axis mirroring

Show more...
2023-02-14 09:30

Show the middle 11 messages.

[9700] Re: flip horzitanly :S / no error in code.
>s = MQSystem
>d = s.getDocument()
>o = d.object[d.currentObjectIndex]
>o.translation = s.newPoint(0,0,0)
>o.rotation = s.newAngle(0,180,0)
>m = o.rotation.getMatrix()
>for v in o.vertex:
>    n = m.mult3(v.getPos())




it rotates model SO far i need it to rotate center of the model WORLD  when i click Rotate it rotates fine in there x axisi 90.  and i cant cant get working to move object down :s
same as selecting Move and move it down. :S idk :S

2023-02-17 03:23
Title
Name
Mail address for renponse notification A mail will be sent when the response is written. This address will be not shown after you post.
Tag Please select from a preset or input arbitrary comma-delimited tags.
Message

Now file attachment is not available temporarily.