Posts

Removing "onModelChange3dc" error window in Maya

Issue :  when loading a scene in Maya or changing the viewport panels, the following error appears  // Error: line 1: Cannot find procedure "onModelChange3dc". //  Solution : Method 1:  1. Go to your Maya Preference folder ("Documents\maya\<Maya version>\prefs) 2. Open the "userPrefs.mel" in notepad or any IDE. 3. Press Ctrl+F and find for "onModelChange3dc"   and remove this text   -editorChanged \"onModelChange3dc\" from all lines. 4. Save the Mel file and Re-open the Maya. Method 2 : Run the given below script in your Maya python script tab. import pymel.core as pm for panel_ in pm.getPanel(type="modelPanel"): callback = pm.modelEditor(panel_, query=True, editorChanged=True) if callback == "onModelChange3dc": pm.modelEditor(panel_, edit=True, editorChanged='') Method 3 : Run the given below script in your Maya python script tab. import pymel.core as pm for item in pm.lsUI(editors=True): ...

Removing "CgAbBlastPanelOptChangeCallback" Error from Maya Scene

 Solution: Run the given Python Code in your Python Tab. for panel_ in pm.getPanel(type="modelPanel"): callback = pm.modelEditor(panel_, q=1, ec=1) if callback == "CgAbBlastPanelOptChangeCallback": pm.modelEditor(panel_, e=1, ec='')

Objects are not showing while taking the Playblast or Sliding in Time line.

Image
 Solutions: 1. Check the layers Playblast icon status. Make sure letter 'P' should be visible. 2. Turn off "Hid on playblack" in objects transform\shape node Object Disply option.

Objects are not showing in Maya Viewport.

 Solutions: 1. Turn on all objects in Viewport Menu "Show" menu. 2. Check Isolation mode is turned on or not in Show Menu. 3. Check Object Attributes if its visibility attribute is on mode or not. 4. Check Camera Translate and rotate attribute. Make sure there is no text like "NAN". if it's there make it 0. 5. Check Visibility and LOD Visibility in display option of Objects transform node and shape node. 6. Check Drawing Overrides 'Visible' status of  Transform and Shape node of object. 7. Check Camera's Far clip and Near clip values. Add more 0 in far clip value.  8. Select the mesh in outliner and assign new shader if you feel shader is transparent. 9. Check the staus of layers. Turn on all layers. 10. Check the scale value of object. Make sure all axis value are 1.0.

In Maya perspective camera moving to NAN value while pressing F (to Frame) button in keyboard.

Image
 While press the F button on keyboard to frame on an object the perspective view goes completely blank. Solution:    1. First delete the Maya preference folder(Before deleting take backup of your shelf if you need it later).    2. Re open Maya and go to Settings and Preference -> Camera -> Fit Factor make it 1.0 .  3. Select the camera's channel editor and reset the All atributes which is showing "NAN" to 0. 4. Check the camera's shape node "center of interest" make it 100.0

While Importing Videos to Premiere 2 frames are getting missed.

 All Players shows full frames but in some old versions of Premiere or DaVinci will trim starting 2 or 3 frames in time line.  Play blast from Maya will work fine but after adding HUD from ffmpeg its happening. Solutions: The issue is basically lies on its codec settings. for adding HUD we will use '-vf "drawtext"' as  ffmpeg command. So we could not use -c: copy along with -vf command. In this scenario use -crf 0 usually it will be 22 or 12. I am using H264 codec. The ffmpeg command: