Metasequoia BBS

ページ 7 8 9 10 11     
/ 314
| 新規投稿 | 通常表示 | ツリー表示 |
状態
タグ
キーワード
[9677] flip horzitanly :S / cant mirror in code dsnt let me select mirrored fa
[要望,help! ] 返信
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

続きを表示...
2023-02-14 09:30

途中の11件のメッセージを表示

[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
[9668] Change object's local axis via plugin or script / d4rt
対応済み [質問,local axis] 返信
I have a few objects consisting of 1 face each. I need a way to automatically align the local axis of these objects with the faces' normal vector. Is it possible to do so via a plugin or a python script?
2023-02-11 01:20

途中の7件のメッセージを表示

[9689] Re: Change object's local axis via plugin or script / no error in code.
>I have a few objects consisting of 1 face each. I need a way to automatically align the local axis of these objects with the faces' normal vector. Is it possible to do so via a plugin or a python script?

need snipped to move Obj1 to up bit and rotate 180  in 3dview port with py script ! :S
2023-02-15 17:28
[9688] help rotate obj1 to 180 and move it down / no error in code.
対応不要 [要望,help! ] 返信
import MQSystem

doc = MQSystem.getDocument()
objnum = doc.numObject

# Find the object to move
for oi in range(objnum):
    obj = doc.object[oi]
    if obj is not None and obj.name == "obj1":
        print("Found obj1")
        if hasattr(obj, "translation"):
            # Move the object down by 1 unit
            translation = obj.translation
            translation.y -= 1
            obj.translation = translation
            # Rotate the object 180 degrees
            rotation = MQSystem.newAngle(0, 180, 0)
            obj.rotation = rotation
        else:
            print("obj1 does not have a translation attribute")

続きを表示...
2023-02-15 15:40
[9686] Move object down and rotate / no error in code.
対応不要 [要望,help! ] 返信
    import MQSystem
    import math
    
    doc = MQSystem.getDocument()
    objects = []
    
    # Find the objects we want to move and rotate
    for oi in range(doc.numObject):
        obj = doc.object[oi]
        if obj is not None and obj.name == "obj1":
            objects.append(obj)
    
    # Move and rotate the objects
    for obj in objects:
        # Move the object down
        obj.translation.y -= 10.0  # Adjust the value to move the object to the desired height
    
        # Rotate the object
        mtx = MQSystem.newMatrix()
        # Set the matrix to rotate around the X axis by 45 degrees

続きを表示...
2023-02-15 09:47
[9674] FILE> EDIT> attribute> selected> object Delete Lines / Delete LINES
対応不要 [要望,help! ] 返信
import MQSystem

doc = MQSystem.getDocument()
objnum = doc.numObject
for oi in range(0, objnum):
    obj = doc.object[oi]
    if obj is None:
        continue


        
    if obj.name == "obj":
        obj.select = 1
        break



hmm i cant find to delete Lines in there :/  so script editor deletes lines for me ! doing script but cant find that one :S
2023-02-13 13:38

途中の2件のメッセージを表示

[9681] Re: FILE> EDIT> attribute> selected> object Delete Lines / 管理者
Don't you understand what 'pseudo code' means?
It doesn't work as is, so you need to make your own improvements to incorporate it.
See more standard samples included in the Script folder.
2023-02-14 14:04
[9669] i cant find Join closed vertices Code / material poperty parameters
対応済み [要望,help! ] 返信
Join Closed Vertices:
Any vertices in the current object, which are close to each other, are joined together. (A dialog box appears, which you use to specify how close together the vertices need to be.)

i cant find Join closed vertices Code


import MQSystem

doc = MQSystem.getDocument()
objnum = doc.numObject
for oi in range(0, objnum):
    obj = doc.object[oi]
    if obj is None:
        continue
        
    if obj.name == "obj":
        obj.select = 1
        break

for oi in range(0, objnum):

続きを表示...
2023-02-12 10:16

途中の1件のメッセージを表示

[9673] Re: i cant find Join closed vertices Code / material poperty parameters
>MQObject.optimizeVertex() joins vertices within a specified distance. Is this function what you are looking for?

yes thnx!
2023-02-13 13:35
[9662] Script editor / material poperty parameters
対応済み [質問,Who are you?] 返信
how to change material poperty- parameters  when selecting model then it changes all the materials selected object only


for obj in ObjectEnum() do
  mat = MaterialGet(obj)
  MaterialSetAlpha mat, 1.00
  MaterialSetDiffuse mat, 0.80
  MaterialSetEmission mat, 0.75
  MaterialSetSpecular mat, 0.00
  MaterialSetPower mat, 5.00
  MaterialSetAmbient mat, 0.00
  MaterialSetReflection mat, 0.00
  MaterialSetRefraction mat, 1.00
end


Error code
Failed to execute a script in line 1.
Invalid syntax. (invalid syntax)
for obj in ObjectEnum() <<<do
2023-02-09 05:13

途中の4件のメッセージを表示

[9667] Re: Script editor / 管理者
What you are asking for is already in the response I have already given, but I will state the same sentence again.

The 'Help' menu in the script editor contains descriptions of classes, functions, and properties.

Please check within the help to see what properties MQObject, MQMaterial, etc. have, and what types they are.
2023-02-10 15:49
[9659] bridge attach form / Riton
対応不要 [質問] 返信
hello,

I would like to link 2 cube and cylinder objects together. I read that the Bridge function exists but I can't find it.
2023-02-06 19:40

途中の1件のメッセージを表示

[9661] Re: bridge attach form / 管理者
[Help] has a search function, so please make good use of it.
2023-02-07 15:48
[9656] jpgとpng / たけし
対応不要 [要望] 返信
64bit版の、

Mlibjpg.dll
Mlibpng.dll

ファイルはありませんか?

またはx64でビルドできるソースファイルはありませんか?
2023-02-02 13:32

途中の1件のメッセージを表示

[9658] Re: jpgとpng / たけし
>内製ライブラリの外部提供はしておりません。
>pngやjpgファイルの読み書きがしたいのであれば、stb_imageなどを利用されてはいかがでしょうか?

残念ですがわかりました。
2023-02-03 06:35
[9654] Why deleting UV also deleting Face too ? / Neptrone
対応済み [質問] 返信
Hello, Why deleting UV also deleting Face too ? is it possible to remove all UV Map without deleting face ?

Thanks
2023-01-22 07:05
[9655] Re: Why deleting UV also deleting Face too ? / 管理者
The reason a face is deleted is that you are performing an operation that deletes the face.

To begin with, UV is always the coordinate value that the face has, and there is no method in Metasequoia to delete UVs. Though, you can set the UVs of each face to the same value by using such as [Unify].
2023-01-24 12:25
最新 前のページ 次のページ