# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Topic: FBModel, FBVector3d # from pyfbsdk import FBModelList, FBGetSelectedModels, FBVector3d, FBMessageBox lSelectedModels = FBModelList() FBGetSelectedModels( lSelectedModels ) ## This script will reset all the local translation and rotation on selected model if len(lSelectedModels)==0: FBMessageBox("Reset Local Translation and Rotation on selected objects", "No model selected, no operation performed...", "Ok") else: for lModel in lSelectedModels: lModel.Translation = FBVector3d() lModel.Rotation = FBVector3d() # Cleanup of local objects del( lSelectedModels ) # Cleanup of imported modules del( FBModelList, FBGetSelectedModels, FBVector3d )