Notifications
Clear all

[Closed] Elements Active toggle

 Rav

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
(
    local reMgr = maxOps.getCurRenderElementMgr()	
    reMgr.SetElementsActive (not (reMgr.GetElementsActive()))
)
1 Reply
 Rav
(@rav)
Joined: 11 months ago

Posts: 0

Thank you denisT prefect!