Message 1 of 4
Maxscript delegate problem
Not applicable
09-16-2008
06:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a very strange problem which is driving me mad . I have a class which extends from another and I use 'delegate' to access the parent.
The problem im having is that maxscript thinks that delegate is the current class and not the parent, this results in errors as im using delegate.color etc and it says color is not a property of class. This was working fine but for some reason its just stopped working but I havent changed any of the code which makes it stranger, just installed max2009.
If I do class.delegate in the maxscript listener the result is as expected, but not when the script is run at startup on my object when the scene loads.
Just a vague description if my explanation didnt make it very clear
Any help would be greatly appreciated.
Thanks
Mike
I have a very strange problem which is driving me mad . I have a class which extends from another and I use 'delegate' to access the parent.
The problem im having is that maxscript thinks that delegate is the current class and not the parent, this results in errors as im using delegate.color etc and it says color is not a property of class. This was working fine but for some reason its just stopped working but I havent changed any of the code which makes it stranger, just installed max2009.
If I do class.delegate in the maxscript listener the result is as expected, but not when the script is run at startup on my object when the scene loads.
Just a vague description if my explanation didnt make it very clear
class Parent
(
#filename filename
)
class Child extends Parent
(
-- for some reason delegate is Child and not Parent so fails
delegate.filename = "file"
)
Any help would be greatly appreciated.
Thanks
Mike