Message 1 of 5
"Float Expression" to control a light
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, this forum is brilliant 🙂
I now have a “Dummy” object and I want to rotate on “X” axis.
As it rotates, I want it to turn a light on and off at predefined angels.
I put a Float Script on X axis of my “Dummy” object and wrote this:
dummyRotation = $.rotation.x
if dummyRotation >= 10.0 and dummyRotation < 12.0 then
(
Spark001.Multiplier = 1.0 -- Turn on Spark001
)
else
(
Spark001.Multiplier = 0.0 -- Turn off Spark001
)
But when I Evaluate, I get –Unknown property: “multiplier” in undefined? Do I need a Variable?
Regards
Rog 😊