pogaq.blogg.se

Maya python setattr visibility false
Maya python setattr visibility false







maya python setattr visibility false

# get the current scene path and extract fields from it Publish_template = outputĭebug(app = None, method = '_publish_nukeCamera_for_item', message = 'publish_template: %s' % publish_template, verbose = False)

maya python setattr visibility false

Mel.eval(r'print "Fluid(s) not in selection.\n" ')ĭef _publish_nukeCamera_for_item(self, item, output, work_template, primary_publish_path, sg_task, comment, thumbnail_path, progress_cb):Įxport an xml file for the specified item and publish it to Shotgun.ĭebug(app = None, method = '_publish_nukeCamera_for_item', message = 'item: %s' % item, verbose = False)ĭebug(app = None, method = '_publish_nukeCamera_for_item', message = 'tank_type: %s' % tank_type, verbose = False) PathToWorking = r'%s' % tk.paths_from_template(work_template, 'ĭebug(None, method = 'fluidCaches._cacheWake', message = 'FAILED: No fluids in selection!', verbose = False) Tk = sgtk.sgtk_from_path("T:/software/bubblebathbay") # Save the animation file as the next working file in the FX folder # Build the script node for the FX app.py to use as the current version number of the oceanPresetĬmds.addAttr('fxNugget', ln = 'animVersion', at = 'long')Ĭmds.setAttr('fxNugget.animVersion', file_version) # Cleanup unknown nodes to make sure we can save from mb back to ma (path, ext) = os.path.splitext(file_path) #file_path: I:/lsapipeline/episodes/eptst/eptst_sh2000/Anm/publish/maya/įile_version = int(file_path.split('.').split('v'))ĭebug(app = None, method = 'add_file_to_maya', message = 'file_version: %s' % file_version, verbose = False) This implementation creates a standard maya reference file for any item.įile_path = file_path.replace(os.p, "/")ĭebug(app = None, method = 'add_file_to_maya', message = 'file_path: %s' % file_path, verbose = False)

maya python setattr visibility false

ModelPanels = cmds.getPanel(type = 'modelPanel')ĭef add_file_to_maya(self, file_path, shotgun_data): # Gin's add-on set model panel to show back to ALL after publish If cmds.objExists('OCEAN_hrc.oceanCalcOnOff'):Ĭmds.setAttr('OCEAN_hrc.oceanCalcOnOff', 0) # Now set the scenes Ocean settings back to normalĬmds.setAttr('oceanPreviewPlane_prv.visibility', 1)Ĭmds.setAttr('animPreviewPlane_prv.visibility', 1) Progress_cb(0, "Post Checking scene now.") The -typeįlag is only required when setting a non-numeric attribute.Def _do_maya_post_publish(self, work_template, progress_cb): No value for the theĪttribute is needed when the -l/-k/-s flags are used. Sets the value of a dependency node attribute. SetAttr is undoable, queryable, and editable. Note: Strings representing object names andĪrguments must be separated by commas.









Maya python setattr visibility false