Script to zero pivot point

Discussion in 'Car Modding' started by Butters, Oct 18, 2016.

  1. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    Does anyone know if there is a script to zero the pivot points of an object?

    It would be nice to be able to hit a button rather than having to go through the menus etc.

    So just to clarify looking for a script to change the "Affect Pivot Only" of object coordinates to [0, 0, 0].

    Alternatively if anyone has a suggestion on how they shortcut the process would be equally appreciated.

    Sent from my SM-G928I using Tapatalk
     
  2. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Press f11 to open maxscript listener and type:
    $.pivot = [0,0,0]
    Select your objects and press numpad enter


    Sent from my iPhone using Tapatalk
     
  3. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    That is perfect. Many thanks ☺

    Sent from my SM-G928I using Tapatalk
     
  4. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    By any chance do you know if there is a script that can detach all faces separately. For example if I have a box shaped object then it will detach each face individually so that when exporting into game it does not have any smoothing.

    ai know simple answer would be don't use smoothing but chassis has box work and round bar work and detaching each face one by one is time consuming.

    Thanks

    Sent from my SM-G928I using Tapatalk
     
  5. Euskotracks

    Euskotracks Registered

    Joined:
    Nov 29, 2013
    Messages:
    1,092
    Likes Received:
    191
    In 3dsimed you can automatically do this. You can smooth faces forming and angle below a threshold value or you can remove all smoothing applied.

    However you can only deattach vertex face by face, that I know.

    Enviado desde mi ONE A2001 mediante Tapatalk
     
  6. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    Thanks I will have a look at that tonight

    Sent from my SM-G928I using Tapatalk
     
  7. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    There is a script, I don't remember the name right now, but I'll tell you tomorrow when I'm at my computer. If you can't wait, what you want is detach smoothing groups, and I think the script is by vlm, but that might not be correct. It's actually a whole package of scripts.

    Edit: https://www.rfactorcentral.com/detail.cfm?ID=Modding@Max

    Sent from my SM-G930W8 using Tapatalk
     
  8. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    Brilliant that's perfect thanks Coutie.

    Sent from my SM-G928I using Tapatalk
     
  9. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169

    Can use my script MMtools

    http://www.mj-multimedia.net/soft/mmtools/mmt_node.php
     
  10. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
  11. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    No
     

Share This Page