Notifications
Clear all
[Closed] Elements Active toggle
Sep 29, 2014 10:32 am
Hi trying to make a simple “Elements Active toggle” script
So if running the script and the Elements Active is true , script will turn it off, and if the Elements Active is false the script will turn it on.
This what i have done so far im stuck:
(
local reMgr = maxOps.getCurRenderElementMgr()
if reMgr.SetElementsActive == true then
(
local reMgr = maxOps.getCurRenderElementMgr()
reMgr.SetElementsActive = false
)
else
(
local reMgr = maxOps.getCurRenderElementMgr()
reMgr.SetElementsActive = true
)
)
Thanks in advance
2 Replies
Sep 29, 2014 10:32 am
(
local reMgr = maxOps.getCurRenderElementMgr()
reMgr.SetElementsActive (not (reMgr.GetElementsActive()))
)
1 Reply