|
对了,菜单上也要加上:
同样位置,R2P.rb
#Light Menu Items
createOmniLight = UI::Command.new("Omni Light") {
Sketchup.active_model.select_tool VRayForSketchUp::OmniLightTool.new
}
createRectLight = UI::Command.new("Rect Light") {
Sketchup.active_model.select_tool VRayForSketchUp::RectLightTool.new
}
createSpotLight = UI::Command.new("Spot Light") {
Sketchup.active_model.select_tool VRayForSketchUp::SpotLightTool.new
}
createIESLight = UI::Command.new("IES Light") {
Sketchup.active_model.select_tool VRayForSketchUp::IESLightTool.new
}
createSphereLight = UI::Command.new("Sphere Light") {
Sketchup.active_model.select_tool VRayForSketchUp::SphereLightTool.new
} 加上这一行
lightMenu.add_item createOmniLight
lightMenu.add_item createRectLight
lightMenu.add_item createSpotLight
lightMenu.add_item createIESLight
lightMenu.add_item createSphereLight 还有这一行
…… |
|