Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Trouble with dbPickObject

Author
Message
3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 2nd Jun 2010 00:51
Hello All,
I am tyring to get some buttons to work in Dark Dgk.
Have then working but can't understand why my text is adding on each button.

Can someone take a look at my code and see for yourself what it's doing.


Thank you,
Leroy

Here i am!!!
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 2nd Jun 2010 12:02 Edited at: 2nd Jun 2010 12:03
If you use


That includes object 1 as well [1,11].

It should say something like,



or just


So just object 11 is checked.

And so this runs properly:



haliop
User Banned
Posted: 2nd Jun 2010 12:57 Edited at: 2nd Jun 2010 12:58
you can do something else


3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 3rd Jun 2010 10:20
THank you for your responces,
Both can work great.

however using the Case and the break commands will be a new one on me. Never seen either one used here on the message board before.

Need to look up all about that a wrap my mind with it.

But again it's now working

Leroy

Here i am!!!
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 3rd Jun 2010 15:15
well if you find switch/case confusing, just use if/else statements, there's no difference, but dont overuse dbPickObject as it is somewhat slow (especially for complex high-poly objects)

Xerges
14
Years of Service
User Offline
Joined: 18th Oct 2009
Location:
Posted: 8th Jun 2010 12:08
I've been using dbPickObject(), but when I have several cameras it doesn't return any value, it only works with the default camera and no additional ones.

Login to post a reply

Server time is: 2024-07-04 10:33:06
Your offset time is: 2024-07-04 10:33:06