import maya.cmds as cmds
import maya.mel as mel
current_model_panel = cmds.playblast(ae=True)
current_model_panel += "|" + current_model_panel.rsplit("|")[-1]
object_name = "pCube1"
cmds.setParent(current_model_panel + "ObjectPop", menu = 1)
mel.eval("""buildObjectMenuItemsNow
after my test, if you what to use it ,you must change selection mode
manually first ,then you can use it,,I will find a better way to finish
it,please take a minute
在2021年8月21日星期六 UTC+8 上午1:44:07 写道:
> Sorry for the delay! Some emails from groups are going to spam..
> I tried it but I
of course! that is must simpler!
thanks.
El domingo, 22 de agosto de 2021 a las 9:29:46 UTC+2, Marcus Ottosson
escribió:
> My first go-to would be to try cmds.file(new=True, force=True) instead of
> cmds.delete(), does that work for you?
>
> On Sun, 22 Aug 2021 at 03:09, Rudi Hammad wrote:
>
My first go-to would be to try cmds.file(new=True, force=True) instead of
cmds.delete(), does that work for you?
On Sun, 22 Aug 2021 at 03:09, Rudi Hammad wrote:
> Hi,
> this might seem an odd question, but I was wondering if it is possible to
> make maya's IDE not showing the error message