Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

TURNING OFF AN ATMOSPHERIC

TURNING OFF AN ATMOSPHERIC

avolution
Advocate Advocate
308 Views
2 Replies
Message 1 of 3

TURNING OFF AN ATMOSPHERIC

avolution
Advocate
Advocate
Code from listener.....


FOO=GETATMOSPHERIC(1)
Volume_Light:MY VOLUME LITE
SETACTIVE FOO=0
-- No ""="" function for (Global:setActive Global:foo)
SETACTIVE FOO=FALSE
-- No ""="" function for (Global:setActive Global:foo)
FOO.SETACTIVE=FALSE
-- Unknown property: "setActive" in Volume_Light:MY VOLUME LITE


Could someoner show me how I disable an atmospheric;
it says to use setactive; but it returns these errors.

I am sure it is simple.

Thanks
0 Likes
309 Views
2 Replies
Replies (2)
Message 2 of 3

Steve_Curley
Mentor
Mentor
No "=" required - setactive is a function taking 2 parameters, the object (atmosphere or effect) and the state (true or false).

setActive Foo False should work.

Btw, in most cases the parenthesis are redundant - "foo = get Atmospheric 1" will work fine.


Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 3

avolution
Advocate
Advocate
No "=" required - setactive is a function taking 2 parameters, the object (atmosphere or effect) and the state (true or false).

setActive Foo False should work.

Btw, in most cases the parenthesis are redundant - "foo = get Atmospheric 1" will work fine.


Thanks it was really that simple!
0 Likes