Search found 110 matches

by TheMagician
Sat Dec 10, 2011 4:59 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

That's great GPNMilano. I'm looking forward to it :)

When we've collected all these points about GUIs I'll try and put them into comprehensive video tutorials. However, with Python scripting this is not going to be an easy task because I don't have as much experience.

I'm still trying to get ...
by TheMagician
Sat Dec 10, 2011 5:38 am
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

Once again: thank you so much for all the valuable information :)
It's funny how you all talk about 'best practice' and coding tips here and there ... feels like your knowledge comes directly from Cyan :D

Of course this wouldn't be a proper GUI button thread if we didn' talk about GUI button sounds ...
by TheMagician
Sat Dec 10, 2011 4:30 am
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

But if you disable Modal, don't forget to disable the avatar movement when the GUI goes up
What's the Python function to do that?

Also, while we're at the topic, is there actually a way to disable (and later enable again) the user from moving the avatar that you can set within 3D Max (perhaps via ...
by TheMagician
Fri Dec 09, 2011 7:36 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

That's because if you read the tutorial, you'll notice I don't have you set up a "click off panel".
I must admit I can't follow you, Andy. From what I read in your tutorial you actually DO set up an invisible "click off panel".

Using Modal Enabled, you do not need a click off panel. The player ...
by TheMagician
Fri Dec 09, 2011 2:56 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

... after an hour of analysing the setup of xDialogToggle and different age prp files from Cyan's ages I found the cause of the problem.

I followed THIS tutorial on setting up GUIs.
There it says that in the GUIDialog component you should tick the "modal" checkbox. For the tutorial that's the right ...
by TheMagician
Wed Dec 07, 2011 1:36 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

I use Drizzle + local POTS installation.

Yes, the Python Glue block is attached.
by TheMagician
Wed Dec 07, 2011 10:16 am
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

Could you try PtGetControlEvents(true, self.key) and PtGetControlEvents(false, self.key) instead of PtEnableControlKeyEvents(self.key) and PtDisableControlKeyEvents(self.key)
Tried that but doesn't change anything.

And it might be a good idea to unload the dialog finally in the destructor ...
by TheMagician
Wed Dec 07, 2011 2:41 am
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

I hope this isn't asked for too much but perhaps you could have a look at my Python file.
I think I followed all your pieces of advice but still the log file shows that the keystrokes are not recognized.

from Plasma import *
from PlasmaTypes import *
from PlasmaConstants import *
from ...
by TheMagician
Tue Dec 06, 2011 4:47 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

PtGetLocalAvatar will never equal PtFindAvatar(events) because PtGetLocalAvatar is a method
Now that explains why WITH this line the script never triggered the action ;)

Thanks also for the information on ptGUIControl and constants.

Right now I'm working on exiting back out of my GUI. I copied ...
by TheMagician
Tue Dec 06, 2011 2:03 pm
Forum: Building
Topic: Qustion on GUI Buttons in Max
Replies: 30
Views: 15408

Re: Qustion on GUI Buttons in Max

I've got the script up and running! :)

However, the line
if PtGetLocalAvatar = PtFindAvatar(events):
needs to be updated to
if PtGetLocalAvatar == PtFindAvatar(events):

I understand most of the script but could you explain what the 'control' refers to in this part:
def OnGUINotify(self,id ...

Go to advanced search