-
Notifications
You must be signed in to change notification settings - Fork 190
/
__init__.py
78 lines (67 loc) · 3.07 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Blender FLIP Fluids Add-on
# Copyright (C) 2024 Ryan L. Guy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
This addon __init__.py file is not the actual FLIP Fluids addon. The purpose of this
file is to inform the user that what they have installed is not an installation file
and is not the correct way to install the FLIP Fluids addon.
"""
bl_info = {
"name" : "FLIP Fluids - This is not an installation file",
"description": "The file you have installed is not an addon. Enable for more info.",
"author" : "The FLIP Fluids Development Team",
"version" : (0, 0, 0),
"blender" : (3, 1, 0),
"location" : "",
"warning" : "",
"wiki_url" : "https://github.com/rlguy/Blender-FLIP-Fluids",
"tracker_url" : "",
"category" : ""
}
import bpy
class FLIPFluidInfoAddonPreferences(bpy.types.AddonPreferences):
bl_idname = __name__.split(".")[0]
def draw(self, context):
column = self.layout.column(align=True)
column.label(text="The file you have installed is not an addon.")
column.label(text="This .zip file only contains the addon and simulation engine source code.")
column.label(text="")
column.label(text="The source code must be built and compiled for your system.")
column.label(text="See the FLIP Fluids GitHub README for instructions.")
column.operator(
"wm.url_open",
text="FLIP Fluids addon GitHub",
).url = "https://github.com/rlguy/Blender-FLIP-Fluids"
column.separator()
column.operator(
"wm.url_open",
text="Try our FLIP Fluids Free Trial",
).url = "https://github.com/rlguy/Blender-FLIP-Fluids/wiki/FLIP-Fluids-Demo-Addon"
column.operator(
"wm.url_open",
text="Purchase the FLIP Fluids addon on the Blender Market",
).url = "https://blendermarket.com/products/flipfluids"
column.operator(
"wm.url_open",
text="Purchase the FLIP Fluids addon on Gumroad",
).url = "https://flipfluids.gumroad.com/l/flipfluids"
column.operator(
"wm.url_open",
text="Purchase the FLIP Fluids addon on FlippedNormals",
).url = "https://flippednormals.com/product/the-flip-fluids-addon-for-blender-16173?dst=4DxRZXXT"
def register():
bpy.utils.register_class(FLIPFluidInfoAddonPreferences)
def unregister():
bpy.utils.unregister_class(FLIPFluidInfoAddonPreferences)