How to set the XYZ Transform on the right panel to 0 without moving the object's position?

How to set the XYZ Transform on the right panel to 0 without moving the object's position?
Object at root

 

Thank you everyone.

Comments

  • ArtAngelArtAngel Posts: 1,942
    edited May 16

    I would simply export and reimport/

    Edit: Just noticed you say root which I consider the hip bone, If the object is rigged exporting and reimporting will not work.

    Maybe post a screen shot of which right panel you are referring to.

    Post edited by ArtAngel on
  • Richard HaseltineRichard Haseltine Posts: 107,883

    Are you wanting to write a script to do this or just asking how it can be done in geenral (in which case, please dit the first post and set the forum to Daz Studio Discussion).

  • ArtAngel said:

    I would simply export and reimport/

    Edit: Just noticed you say root which I consider the hip bone, If the object is rigged exporting and reimporting will not work.

    Maybe post a screen shot of which right panel you are referring to.

    It's the one on the parameters panel on the right, which controls the position of objects in three colors: red, green, and blue.
    Below are controls for the rotation and scaling of objects. 

  • Richard Haseltine said:

    Are you wanting to write a script to do this or just asking how it can be done in geenral (in which case, please dit the first post and set the forum to Daz Studio Discussion).

    I want to write a script.
    I tried to search for documents and found this function, setLocalTransform()
    But it cannot be used:
    node.setLocalTransform(0,0,0)
    node.setLocalTransform((0,0,0))
    node.setLocalTransform(1,1,1,1,1,1,1,1,1,1,1,1)
    None of them work, and there are no cases on the document
    Ask AI, the functions he provides do not exist. 

  • Richard HaseltineRichard Haseltine Posts: 107,883

    What you are wanting to do is move teh centre point, so that its coordinates are the opposite of the current translations and roations. The DzNode.get[X|Y|Z][Pose|Rot|Scale]Control() methods will let you get the properties and then query their values, then you I think http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/node_dz#a_1a921b141bfb3cf657d6d2c1c9ea532a6c would let you set the origin to compemsate (but I haven't actually tested).

Sign In or Register to comment.