View Full Version : Wishlist for callbacks: Please list yours
AlpineMan 04-26-2006, 01:01 AM Hi everybody
I want to assemble a wishlist of callbacks everyone would like implemented in maxscript. I'm curious to know what your needs are, and what is or isn't being addressed. I figure by focusing on a narrow topic, it will be easier to document and discuss.
Just note, I am not doing this in any official capacity, since I'm at home typing this up. :) But I think if the topic is concise enough, and thoroughly discussed that it can do nothing but aid in the future development of Max.
My two
when a selectionset is created
when a selectionset is deleted
The notifications would return the names that were created or deleted.
Chris J.
|
|
Light
04-26-2006, 06:00 AM
Hey Chris (what's up?),
Can I ask for a callback which returns true when say the user is double clicked in the viewport? If so, I will have to make a small list of callbacks which would be really useful.
Thanks man,
Light
Wahooney
04-26-2006, 06:41 AM
I think that callbacks for subobject operations would be nice, like:
when a sub object is selected (return bitarray of selection)
when a sub object is moved (no return)
and things along a similar vein.
f97ao
04-26-2006, 08:57 AM
Much more events about ANIMATIONS.
When a key has been
- moved
- deleted
- added.
MOUSE
- right click from mouse
- middle click from mouse
- mouse scroll
- button4 and button5 clicked
- mouse moved (it would be nice if it could also return the direction the mouse has been moved in).
As many events as possible about things happening on EDITABLE_POLY Object.
- extrude started/stopped
- bridge started/stopped
- chamfer started/stopped
- more like the above
- subobject level changed
/Andreas
AlpineMan
04-26-2006, 10:29 AM
Hey Chris (what's up?),
Can I ask for a callback which returns true when say the user is double clicked in the viewport? If so, I will have to make a small list of callbacks which would be really useful.
Thanks man,
Light
Well write up your list and post them here.
AlpineMan
04-26-2006, 10:52 AM
I think that callbacks for subobject operations would be nice, like:
when a sub object is selected (return bitarray of selection)
when a sub object is moved (no return)
and things along a similar vein.
Are you aware that a change handler will recognize sub-object selection changes, and transforms? For instance:
function OnSelectionChanged =
(
print "in OnSelectionChanged"
format "\tSub-Object-Level: % \n" subobjectLevel
)
function OnGeometryAltered =
(
print "in OnGeometryAltered"
)
when select objects changes obj do
(
print obj
OnSelectionChanged()
)
when geometry objects changes obj do
(
OnGeometryAltered()
)
Take an editable poly, select some faces and starting moving them around and you will see it.
However, I agree with you, that for consistency, perhaps there could be a callback to handle these situations.
Light
04-26-2006, 11:20 AM
I think callbacks for mouse clicks and key presses would be very useful, like: when the user double clicks, right clicks, presses C, etc. A callback that would return the SO the mouse is over (or closest for edges/verts), and the SO (left/right/middle) mouse button clicked on would be great too. Also a callback returning the SOs being moved by a relative and absolute coordinates.
I can think of some more later.
Thanks,
Light
f97ao
04-26-2006, 02:20 PM
Are you aware that a change handler will recognize sub-object selection changes, and transforms? For instance:
However, I agree with you, that for consistency, perhaps there could be a callback to handle these situations.
Yes, i know about that. :) But the change handler isn't that much fun to work with. It's also a broad callback for lots and lots of things.
/A
erilaz
04-26-2006, 02:58 PM
A series of callbacks for use DURING rendering would be great. Right now it's impossible to do update a scene per frame while rendering unless you do a messy workaround. I know that's more to do with how max caches before render, but it would be nice. :)
erilaz
04-26-2006, 03:00 PM
A callback that registers when you're typing in the maxscript window would also be wonderful! :)
AlpineMan
04-26-2006, 03:01 PM
A series of callbacks for use DURING rendering would be great. Right now it's impossible to do update a scene per frame while rendering unless you do a messy workaround. I know that's more to do with how max caches before render, but it would be nice. :)
Wouldn't that entail regenerating the entire scene if you handled that callback notification?
Any more besides changes per frame?
j-man
04-26-2006, 04:16 PM
Is it possible to have a callback when max crash's? or would that be when max closes. I know it sounds silly but might come in handy for saving variables / settings etc.
J.
Light
04-26-2006, 04:33 PM
Hey Joshua,
Very nice stuff you have in your portfolio. Now tell me where did you get those photos?;)
Light
j-man
04-26-2006, 06:03 PM
Thanks Light! :D
J.
Wahooney
06-05-2006, 06:55 AM
An update to the registerRedrawViewsCallback() function that allows you to discern between each viewport being redrawn, which will allow you to draw different shapes, labels, etc. in each viewport.
CGTalk Moderation
06-05-2006, 06:55 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.