-
Notifications
You must be signed in to change notification settings - Fork 1
/
Small, Far Away.pyp
86 lines (66 loc) · 4.01 KB
/
Small, Far Away.pyp
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
78
79
80
81
82
83
84
85
86
import c4d, copy, os, sys, math, re
from c4d import bitmaps, documents, plugins
# path = c4d.storage.GeGetC4DPath( c4d.C4D_PATH_PREFS ) + "/symbolcache"
# if os.path.exists( path ): os.remove( path )
folder = os.path.dirname( __file__ )
if folder not in sys.path: sys.path.insert( 0, folder )
import ObjectController
from ObjectController import ObjectController
import PolygonReductionController
from PolygonReductionController import PolygonReductionController
import LevelOfDetailController
from LevelOfDetailController import LevelOfDetailController
import InstanceController
from InstanceController import InstanceController
import VisibilityController
from VisibilityController import VisibilityController
import ShadingModeAndStyleController
from ShadingModeAndStyleController import ShadingModeAndStyleController
import TextureController
from TextureController import TextureController
if __name__ == "__main__":
theBitmap = bitmaps.BaseBitmap()
theDirectoryPath, theFileName = os.path.split( __file__ )
theBitmap.InitWith( os.path.join( theDirectoryPath, "res", "icon.tif" ) )
plugins.RegisterTagPlugin( id = PolygonReductionController.PLUGIN_ID,
str = PolygonReductionController.PLUGIN_NAME,
g = PolygonReductionController,
description = "PolygonReductionController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )
plugins.RegisterTagPlugin( id = LevelOfDetailController.PLUGIN_ID,
str = LevelOfDetailController.PLUGIN_NAME,
g = LevelOfDetailController,
description = "LevelOfDetailController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )
plugins.RegisterTagPlugin( id = VisibilityController.PLUGIN_ID,
str = VisibilityController.PLUGIN_NAME,
g = VisibilityController,
description = "VisibilityController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )
plugins.RegisterTagPlugin( id = TextureController.PLUGIN_ID,
str = TextureController.PLUGIN_NAME,
g = TextureController,
description = "TextureController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )
plugins.RegisterTagPlugin( id = ObjectController.PLUGIN_ID,
str = ObjectController.PLUGIN_NAME,
g = ObjectController,
description = "ObjectController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE | c4d.TAG_MULTIPLE )
plugins.RegisterTagPlugin( id = InstanceController.PLUGIN_ID,
str = InstanceController.PLUGIN_NAME,
g = InstanceController,
description = "InstanceController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )
plugins.RegisterTagPlugin( id = ShadingModeAndStyleController.PLUGIN_ID,
str = ShadingModeAndStyleController.PLUGIN_NAME,
g = ShadingModeAndStyleController,
description = "ShadingModeAndStyleController",
icon = theBitmap,
info = c4d.TAG_EXPRESSION | c4d.TAG_VISIBLE )