Oogst
04-06-2006, 09:47 AM
There are two things I wish to do with a tape in MAXscript that I do not know how to do. I am using 3D Studio MAX 8.
The first is that I want to write a plugin that extends the Tape-object. However, MAX totally seems to ignore my code. I have written this:
plugin Helper PBForceDir
name:"PBForceDir"
classID:#(0x47a07068, 0x73e23198)
category:"PaintBall"
extends:Tape
replaceUI:true
(
)
Now the PBForceDir is in the menu and I can create it, but the result of the creation is a normal tape. The UI is not replaced and classOf $ tells me it is a Tape and not a PBForceDir. If I would create the same thing based on a SphereGizmo, everything works fine, so the problem is specific for extending the tape. Does anyone know how to do this?
My second problem is that I want to create a plug-in that extends the BoxGizmo Helper, but has a taper as well. I want the following behaviour: the base of the Tape is not selectable and always at the same position as the base of the BoxGizmo. The target of the Tape however is normally selectable and movable by the user. I want to do this, because I am making objects that will be used in a game I am coding and this is a force-area-trigger. So when the player is in the BoxGizmo, a force pushes him in the direction of the target. How can I make such an object in 3dsmax?
Thanks in advance for looking at my question!
The first is that I want to write a plugin that extends the Tape-object. However, MAX totally seems to ignore my code. I have written this:
plugin Helper PBForceDir
name:"PBForceDir"
classID:#(0x47a07068, 0x73e23198)
category:"PaintBall"
extends:Tape
replaceUI:true
(
)
Now the PBForceDir is in the menu and I can create it, but the result of the creation is a normal tape. The UI is not replaced and classOf $ tells me it is a Tape and not a PBForceDir. If I would create the same thing based on a SphereGizmo, everything works fine, so the problem is specific for extending the tape. Does anyone know how to do this?
My second problem is that I want to create a plug-in that extends the BoxGizmo Helper, but has a taper as well. I want the following behaviour: the base of the Tape is not selectable and always at the same position as the base of the BoxGizmo. The target of the Tape however is normally selectable and movable by the user. I want to do this, because I am making objects that will be used in a game I am coding and this is a force-area-trigger. So when the player is in the BoxGizmo, a force pushes him in the direction of the target. How can I make such an object in 3dsmax?
Thanks in advance for looking at my question!
