Immune to camera not working
Moderators: Víctor Paredes, Belgarath, slowtiger
- striker2311
- Posts: 226
- Joined: Wed Aug 26, 2020 3:55 pm
Immune to camera not working
I don't know what's happening but immune to camera option is faded in my image layer.
Please help me to fix that !!
Please help me to fix that !!
- synthsin75
- Posts: 10280
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Immune to camera not working
Immune to camera only works for top level layers. So if your image layer is nested in one or more group/bone layers, etc., you'll need to set immune from its topmost parent layer.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Immune to camera not working
You can temporarily drag that layer out of the group, apply immune to camera , then drag it back in to make it work.
Works every time !
I've been doing it for years.
Works every time !

I've been doing it for years.
- synthsin75
- Posts: 10280
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Immune to camera not working
I'll be damned.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- striker2311
- Posts: 226
- Joined: Wed Aug 26, 2020 3:55 pm
Re: Immune to camera not working
Yeah it's great
BTW thanks for tip
Last edited by striker2311 on Sat Sep 04, 2021 5:52 am, edited 1 time in total.
- striker2311
- Posts: 226
- Joined: Wed Aug 26, 2020 3:55 pm
Re: Immune to camera not working
Yeah thanks for that it seems to be working like that at first i didn't understandsynthsin75 wrote: ↑Fri Sep 03, 2021 8:05 pm Immune to camera only works for top level layers. So if your image layer is nested in one or more group/bone layers, etc., you'll need to set immune from its topmost parent layer.
Re: Immune to camera not working
No worries 

- synthsin75
- Posts: 10280
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Immune to camera not working
Quick script to toggle immune to camera on the selected layer, even if it's in a group.
Code: Select all
-- **************************************************
-- Provide Moho with the name of this script object
-- **************************************************
ScriptName = "Syn_ToggleImmune"
-- **************************************************
-- General information about this script
-- **************************************************
Syn_ToggleImmune = {}
function Syn_ToggleImmune:Name()
return "Toggle Immune"
end
function Syn_ToggleImmune:Version()
return "0.1"
end
function Syn_ToggleImmune:Description()
return "Toggle immune to camera"
end
function Syn_ToggleImmune:Creator()
return "©2021 J.Wesley Fowler (SynthSin75)"
end
function Syn_ToggleImmune:UILabel()
return "SYN: Toggle Immune"
end
-- **************************************************
-- The guts of this script
-- **************************************************
function Syn_ToggleImmune:Run(moho)
moho.document:PrepUndo(moho.layer)
moho.document:SetDirty()
moho.layer:SetImmuneToCamera(not moho.layer:IsImmuneToCamera())
end
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Immune to camera not working
Hey Wes, just saw your script... nice one !
Ta!
Works great.

Works great.