controlling lights?

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

controlling lights?

Postby Goofy » Tue Jan 29, 2008 7:48 pm

Was wondering if theres a way to control lights like in the neighborhoods. well thats about it. Basicly I wanted to make a control panel with atleast 4 buttons, but maybe more and each button would control a group of lights.
We keep moving forward,
openning up new doors and doing new things,
Because we're curious... and curiosity keeps
leading us down new paths

Walt Disney

Keep moving forward
Goofy
 
Posts: 162
Joined: Mon Oct 01, 2007 8:51 pm

Re: controlling lights?

Postby D'Lanor » Wed Jan 30, 2008 3:04 am

You will have to use conditional objects. That subject does not seem to have been ported from the alcugs wiki yet.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: controlling lights?

Postby Goofy » Wed Jan 30, 2008 11:35 am

yea I noticed that, also I found this http://alcugs.almlys.org/AgeClickable unfortunately what it talk about isnt available in that form(well that I can see)in blender.

I did notice that there was a generic region, but not sure if that can be used or even how to set it up for a clickable which is what I need.
We keep moving forward,
openning up new doors and doing new things,
Because we're curious... and curiosity keeps
leading us down new paths

Walt Disney

Keep moving forward
Goofy
 
Posts: 162
Joined: Mon Oct 01, 2007 8:51 pm

Re: controlling lights?

Postby D'Lanor » Wed Jan 30, 2008 3:39 pm

The correct alcugs page for the old method would be http://alcugs.almlys.org/AgeSDL

You could always try and report back here how the new plugin handles it.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: controlling lights?

Postby Kato » Sat Feb 02, 2008 9:58 am

If there's something that's not on the wiki--why not rewrite it? :D

-Kato
Image
(explorer card designed and created by me)
User avatar
Kato
 
Posts: 315
Joined: Fri Sep 28, 2007 8:02 pm
Location: South USA

Re: controlling lights?

Postby D'Lanor » Sat Feb 02, 2008 10:32 am

That assumes we know how it works...

Besides, I have personal reasons for not contributing to the GoW wiki. I have decided that I am against the move away from alcugs. So I will not do anything that helps the GoW fork.
Why am I still posting Python code on this forum then? Here is why: Python is totally independent from the plugin version an age is made with. I am a scripter, not a builder. I can whip up Python test/demo ages in the 0.5 stable version quickly and I do not need the new fancy stuff. So being mainly a 0.5 user "my" wiki would be alcugs.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: controlling lights?

Postby Chacal » Sat Feb 02, 2008 11:46 am

Update the alcugs wiki then. We can link to it.
What matter is that the knowledge is available to all writers.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2508
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: controlling lights?

Postby BAD » Sat Feb 02, 2008 2:22 pm

D'Lanor wrote:That assumes we know how it works...

Besides, I have personal reasons for not contributing to the GoW wiki. I have decided that I am against the move away from alcugs. So I will not do anything that helps the GoW fork.
Why am I still posting Python code on this forum then? Here is why: Python is totally independent from the plugin version an age is made with. I am a scripter, not a builder. I can whip up Python test/demo ages in the 0.5 stable version quickly and I do not need the new fancy stuff. So being mainly a 0.5 user "my" wiki would be alcugs.


Why am I not surprised. ;)
BAD is as good as he gets
User avatar
BAD
 
Posts: 832
Joined: Sat Sep 29, 2007 9:44 am

Re: controlling lights?

Postby D'Lanor » Sun Feb 03, 2008 7:43 pm

I found the Alcscript for conditional objects:

Code: Select all
objectname:
    quickscript:
        sdl:
            type: "boolshowhide"

But IMO this is still a crazy way to release a tool. Do you really expect your users to reverse engineer the PyPRP code in order to learn its functions?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: controlling lights?

Postby Nadnerb » Sun Feb 03, 2008 9:07 pm

Well, the alternative is not releasing anything at all for an indefinite period of time until the few people who were developing it can finish documenting all it's features, or it can be released as is, so the people who can reverse engineer it can use it, and perhaps do some of the documentation themselves, thus assisting everyone, and making it usable to the general public faster.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Next

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron