I had the same issues years ago, and if i remember correctly, the reason of that it's because you using outputMesh, and not worldMesh,
2017-04-04 9:27 GMT+02:00 justin hidair <[email protected]>: > writing a node here *see joint file* > > def compute(self,plug,datablock): > pass > if(plug != myclass.outputmesh): > pass > return om.kUnknownParameter > pass > inputmesh=datablock.inputValue(myclass.inmesh) > outmeshdata=datablock.outputValue(myclass.outputmesh) > outmeshdata.copy(inputmesh) > > datablock.setClean(plug) > > This will copy the mesh BUT will put it at origin right after! > it doesn't even care about the transforms !!! (on the image , rotations...) > > What I want : I don't want to link the transforms, I want them to be baked > in the output(copied mesh) (so technically it's like the transforms have > been frozen on the copied mesh) > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/33c1e50d-cfca-4c27-8c09- > 5fe0d9b3fbe0%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/33c1e50d-cfca-4c27-8c09-5fe0d9b3fbe0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGw4rjvaowz-Nj1QinafTeVxgJcSfUZXm2-aGH6U7ecVee0Ajw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
