Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_InsertParentsCmd.py   PipelineConstructionSet(Download)
            # move the new locator to the same location as its corresponding object, parent, and name appropriately
            newLocFn.setObject(newLocator)
            newLocFn.set(currentObjectFn.transformation())  # align the new locator to the object
            self.__dagModify.reparentNode(currentDagPath.node(),
                                          newLocator)  # the object is now a child of the new locator
        for i in range(0, self.__newLocators.length()):
            locFn.setObject(self.__newLocators[i])
            objectMatrices.append(locFn.transformation())
        # undo the modifier
        self.__dagModify.undoIt()