[Maya-Python] Re: UV transfer from Model to Rigging -Maya

2020-09-01 Thread Utkarsh Agnihotri
Yes, there is a way. you can transfer uvs using transfer attribute. First, you will need to goto shapeOrig in attribute editor of skinned object and then uncheck intermediate object in object display. After that, you have to goto outliner and check shape. now you can see shapes and shape orig

[Maya-Python] Copy key and paste keys from imported rig to referenced rig

2021-06-28 Thread Utkarsh Agnihotri
Hi everyone, I am trying to copy keys from imported rig and paste it to the reference rig. I have written following code: ``` import pymel.core as pm # select the ctrls to copy keys sel = pm.ls("*CTRL") print(sel) # get a list of references refs = pm.listReferences() reference_namespaces =

Re: [Maya-Python] Copy key and paste keys from imported rig to referenced rig

2021-06-28 Thread Utkarsh Agnihotri
and it keep giving me errors. After closing the other window, it worked as it is supposed to. Thanks once again :). On Mon, Jun 28, 2021 at 8:20 PM Justin Israel wrote: > > > On Mon, Jun 28, 2021 at 11:51 PM Utkarsh Agnihotri > wrote: > >> Hi everyone, >> I am trying

[Maya-Python] Adding custom deformer to a skinned mesh

2021-07-05 Thread Utkarsh Agnihotri
Hi, everyone, I am trying to write a custom deformer and it is working well with single mesh with no inputs like skincluster, blendshape, wrap deformer etc. But when I try to run it on a mesh with multiple deformers, it throws me a cycle warning. Can you please tell me how can I avoid this in

Re: [Maya-Python] Adding custom deformer to a skinned mesh

2021-07-05 Thread Utkarsh Agnihotri
to evaluate. > > On Mon, 5 Jul 2021 at 12:47, Utkarsh Agnihotri wrote: > >> Hi, everyone, >> I am trying to write a custom deformer and it is working well with single >> mesh with no inputs like skincluster, blendshape, wrap deformer etc. But >> when I try to run

[Maya-Python] The gameFbxExporter 'gameExporterPreset1' has no '.ich' attribute.

2023-11-15 Thread Utkarsh Agnihotri
Hi, I am trying to do batch export on a set of files but keep getting interrupted by following errors *The gameFbxExporter 'gameExporterPreset1' has no '.ich' attribute.* Nodes named gameExporterPreset1 are causing the issue. I tried to delete them after opening the file in script but it is

Re: [Maya-Python] Query maya scene info with references

2023-11-15 Thread Utkarsh Agnihotri
what about: cmds.file(q=True, l=True)[0]? >> >> On Tue, 14 Nov 2023, 23:09 Utkarsh Agnihotri, >> wrote: >> >>> I have a scene with referenced rig e.g. walk.ma. I am trying query the >>> scene name so that I can export a fbx with same name. How ever, sc

Re: [Maya-Python] Query maya scene info with references

2023-11-15 Thread Utkarsh Agnihotri
Thank you. This one worked :) On Wed, Nov 15, 2023 at 4:07 AM Juan Moraga wrote: > what about: cmds.file(q=True, l=True)[0]? > > On Tue, 14 Nov 2023, 23:09 Utkarsh Agnihotri, > wrote: > >> I have a scene with referenced rig e.g. walk.ma. I am trying query the >> scen

Re: [Maya-Python] Query maya scene info with references

2023-11-15 Thread Utkarsh Agnihotri
path to any referenced file in your scene > > Is there anything else you are looking for? Can you provide a way to > reproduce what you are seeing? > > On Wed, 15 Nov 2023 at 08:48, Utkarsh Agnihotri > wrote: > >> Hi, no, not for this one. Only file name and path. >>

Re: [Maya-Python] The gameFbxExporter 'gameExporterPreset1' has no '.ich' attribute.

2023-11-15 Thread Utkarsh Agnihotri
e = "gameExporterPreset1" > cmds.lockNode(node, lock=False) > > On Wed, 15 Nov 2023 at 13:48, Utkarsh Agnihotri > wrote: > >> Hi, >> I am trying to do batch export on a set of files but keep getting >> interrupted by following errors >> >>

[Maya-Python] Query maya scene info with references

2023-11-14 Thread Utkarsh Agnihotri
Hi, I am trying to query Maya scene name and path using main_scene_file = cmds.file(q=True, sceneName=True) But it doesn't work when there are references in the scene. Does anyone how can I fix that? Thanks :) -- You received this message because you are subscribed to the Google Groups

Re: [Maya-Python] Query maya scene info with references

2023-11-14 Thread Utkarsh Agnihotri
and reference the original scene > cmds.file(new=True, force=True) > cmds.file("referenceMe.ma", reference=True) > cmds.file(rename="newScene.ma") > > fname = cmds.file(query=True, sceneName=True)assert > fname.endswith("newScene.ma") > > >