EverZen
05-16-2008, 02:55 PM
Hi Guys,
I am trying to write a very simple camera scripted plugin which adds some really simple positioning features to the current camera UI.
To do this I have written the start of the scripted plugin, and specified it to extend "TargetCamera". I have then attempted to add a very basic UI in a new Rollout (trying to tag it onto the existing targetcamera UI options!). The trouble is that when I add it, the rollout does not appear!!
Here is the code:
plugin Camera TCameraAdv
name:"Target_Adv"
--classID:#(0x5a3d7fcb, 0x658a4934)
classID:#(0x6c9ea66, 0x171df6b5)
category:"Standard"
extends:TargetCamera
(
-------------------------------------------------------------------------------------------------------------------------
--FUNCTIONS
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
--UI
-------------------------------------------------------------------------------------------------------------------------
parameters CamPosStore rollout:RJCamPosStoreRO
(
)
rollout RJCamPosStoreRO "Transform Storage" width:160 height:240
(
groupBox grp1 "Camera Position Storage" pos:[4,4] width:152 height:196
listBox CamPosStore "" pos:[12,20] width:136 height:10
button RecCamPos "Record Position" pos:[8,160] width:144 height:16
button DelCamPos "Delete Position" pos:[8,180] width:144 height:16
button AssCamPos "Assign Camera Postion" pos:[4,204] width:152 height:32
)
)--End of Camera Adv
The Rollout doesnt appear!!! But when I set up the same plugin to extend FreeCamera it words fine! Like this...
plugin Camera TCameraAdvFree
name:"Target_Adv_Free"
classID:#(0x5a3d7fcb, 0x658a4934)
category:"Standard"
extends:FreeCamera
(
-------------------------------------------------------------------------------------------------------------------------
--FUNCTIONS
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
--UI
-------------------------------------------------------------------------------------------------------------------------
parameters CamPosStore rollout:RJCamPosStoreRO
(
)
rollout RJCamPosStoreRO "Transform Storage" width:160 height:240
(
groupBox grp1 "Camera Position Storage" pos:[4,4] width:152 height:196
listBox CamPosStore "" pos:[12,20] width:136 height:10
button RecCamPos "Record Position" pos:[8,160] width:144 height:16
button DelCamPos "Delete Position" pos:[8,180] width:144 height:16
button AssCamPos "Assign Camera Postion" pos:[4,204] width:152 height:32
)
)--End of Camera Adv
Can anyone tell me what is going wrong with the Target Camera plugin! Cause I am well confused. Unfortunately, we all tend to use more Target cameras, so if I cant fix this dilema then things are looking pretty bleak!!
Thanks for your time guys :)
Rich
I am trying to write a very simple camera scripted plugin which adds some really simple positioning features to the current camera UI.
To do this I have written the start of the scripted plugin, and specified it to extend "TargetCamera". I have then attempted to add a very basic UI in a new Rollout (trying to tag it onto the existing targetcamera UI options!). The trouble is that when I add it, the rollout does not appear!!
Here is the code:
plugin Camera TCameraAdv
name:"Target_Adv"
--classID:#(0x5a3d7fcb, 0x658a4934)
classID:#(0x6c9ea66, 0x171df6b5)
category:"Standard"
extends:TargetCamera
(
-------------------------------------------------------------------------------------------------------------------------
--FUNCTIONS
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
--UI
-------------------------------------------------------------------------------------------------------------------------
parameters CamPosStore rollout:RJCamPosStoreRO
(
)
rollout RJCamPosStoreRO "Transform Storage" width:160 height:240
(
groupBox grp1 "Camera Position Storage" pos:[4,4] width:152 height:196
listBox CamPosStore "" pos:[12,20] width:136 height:10
button RecCamPos "Record Position" pos:[8,160] width:144 height:16
button DelCamPos "Delete Position" pos:[8,180] width:144 height:16
button AssCamPos "Assign Camera Postion" pos:[4,204] width:152 height:32
)
)--End of Camera Adv
The Rollout doesnt appear!!! But when I set up the same plugin to extend FreeCamera it words fine! Like this...
plugin Camera TCameraAdvFree
name:"Target_Adv_Free"
classID:#(0x5a3d7fcb, 0x658a4934)
category:"Standard"
extends:FreeCamera
(
-------------------------------------------------------------------------------------------------------------------------
--FUNCTIONS
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
--UI
-------------------------------------------------------------------------------------------------------------------------
parameters CamPosStore rollout:RJCamPosStoreRO
(
)
rollout RJCamPosStoreRO "Transform Storage" width:160 height:240
(
groupBox grp1 "Camera Position Storage" pos:[4,4] width:152 height:196
listBox CamPosStore "" pos:[12,20] width:136 height:10
button RecCamPos "Record Position" pos:[8,160] width:144 height:16
button DelCamPos "Delete Position" pos:[8,180] width:144 height:16
button AssCamPos "Assign Camera Postion" pos:[4,204] width:152 height:32
)
)--End of Camera Adv
Can anyone tell me what is going wrong with the Target Camera plugin! Cause I am well confused. Unfortunately, we all tend to use more Target cameras, so if I cant fix this dilema then things are looking pretty bleak!!
Thanks for your time guys :)
Rich
