(#626) Requesting Maya MEL/Python command to kill selected Entities.

33 views
Skip to first unread message

technicolor India Pvt Ltd

unread,
May 19, 2021, 3:49:19 AM5/19/21
to crowd...@golaem.com, cgram...@gmail.com
Submitted on Wednesday, May 19, 2021 - 09:41
Submitted by anonymous user: 165.225.104.51
Submitted values are:

First Name: Ramana
Last Name: Vajrapu
Company: technicolor India Pvt Ltd
Status: Other
Email: cgram...@gmail.com
Emails to CC:
Golaem Version: 7.3.2
Maya Version: 2020
OS: Windows
Distribution:
Renderer: V-Ray
Other DCC:
Subject: Requesting Maya MEL/Python command to kill selected Entities.
Attachment:
Details:
Hi,

Kindly Provide MEL/Python command to kill selected Entities from Viewport.
glmHistory Mel procedure is not working in Golaem 7.3.2.





The results of this submission may be viewed at:
http://golaem.com/node/250/submission/5443

Nicolas Chaverou

unread,
May 19, 2021, 4:57:14 AM5/19/21
to Golaem List, cgram...@gmail.com
Hey there,

As the Layout Tool has been completely redesigned the way to do this now is by using our Python Layout API
Notice that this API can run with a maya python only if required

Selected Entities can be fetched with the glmLayoutTool command:

Finally I attached a script which is fetching the selecting entities and adds a kill node to them
The result of those operations is concatenated in a Layout File (every time the script is called, the nodes are added to the files)
Here are the the doc of the two nodes in case that may help

Here's the generated result when calling it the first time on file A

2021-05-19 10_50_40-Golaem Layout Editor.png

And when called a second time still on file A

2021-05-19 10_51_58-Golaem Layout Editor.png

The generated Layout File has to be assigned to the relative CacheProxy to be taken into account at viewport time and at render time

I'll let you inspect the file and let us know if you have any questions :)
Stay safe,


--
Note that crowd...@golaem.com is a public list.
If for any reason (confidential project, sending production files...) you need to post a private message to Golaem Support, please use http://support.golaem.com
---
You received this message because you are subscribed to the Google Groups "Golaem List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crowd-list+...@golaem.com.
To view this discussion on the web visit https://groups.google.com/a/golaem.com/d/msgid/crowd-list/20210519074106.63EB05FDCB%40cluster023.hosting.ovh.net.
removeSelectedEntities.py
Reply all
Reply to author
Forward
0 new messages