本文整理汇总了Python中mn_execution.forbidCompiling函数的典型用法代码示例。如果您正苦于以下问题:Python forbidCompiling函数的具体用法?Python forbidCompiling怎么用?Python forbidCompiling使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了forbidCompiling函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: removeDynamicSockets
def removeDynamicSockets(self):
forbidCompiling()
self.outputs.clear()
for socket in self.inputs:
if socket.name not in ["Amount"]:
self.inputs.remove(socket)
allowCompiling()
示例2: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_ObjectSocket", "Object")
self.inputs.new("mn_VectorSocket", "Location")
self.inputs.new("mn_VectorSocket", "Rotation")
self.inputs.new("mn_VectorSocket", "Scale").vector = (1, 1, 1)
allowCompiling()
示例3: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_FloatSocket", "X")
self.inputs.new("mn_FloatSocket", "Y")
self.inputs.new("mn_FloatSocket", "Z")
self.outputs.new("mn_VectorSocket", "Vector")
allowCompiling()
示例4: init
def init(self, context):
forbidCompiling()
self.outputs.new("mn_FloatSocket", "Frame")
self.outputs.new("mn_FloatSocket", "Start Frame")
self.outputs.new("mn_FloatSocket", "End Frame")
self.outputs.new("mn_FloatSocket", "Frame Rate")
allowCompiling()
示例5: newInputSocket
def newInputSocket(self):
forbidCompiling()
newSocketName = str(len(self.inputs)) + "."
newSocket = self.inputs.new("mn_StringSocket", newSocketName)
self.inputs.move(len(self.inputs) - 1, len(self.inputs) - 2)
allowCompiling()
nodeTreeChanged()
示例6: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_StringSocket", "Text")
self.inputs.new("mn_IntegerSocket", "Start").number = 0
self.inputs.new("mn_IntegerSocket", "Length").number = 5
self.outputs.new("mn_StringSocket", "Text")
allowCompiling()
示例7: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_IntegerSocket", "Seed")
self.inputs.new("mn_FloatSocket", "Min").number = 0.0
self.inputs.new("mn_FloatSocket", "Max").number = 1.0
self.outputs.new("mn_FloatSocket", "Float Value")
allowCompiling()
示例8: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_IntegerSocket", "Seed")
self.inputs.new("mn_IntegerSocket", "Length").number = 5
self.inputs.new("mn_StringSocket", "Characters").string = "abcdefghijklmnopqrstuvwxyz"
self.outputs.new("mn_StringSocket", "Text")
allowCompiling()
示例9: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_VectorSocket", "Position")
self.inputs.new("mn_VectorSocket", "Rotation")
self.inputs.new("mn_VectorSocket", "Scale").vector = [1, 1, 1]
self.outputs.new("mn_MatrixSocket", "Matrix")
allowCompiling()
示例10: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_IntegerSocket", "Amount").number = 5
self.inputs.new("mn_FloatSocket", "Start")
self.inputs.new("mn_FloatSocket", "Step").number = 1
self.outputs.new("mn_FloatListSocket", "List")
allowCompiling()
示例11: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_IntegerSocket", "Index")
self.inputs.new("mn_IntegerSocket", "Width").number = 10
self.inputs.new("mn_FloatSocket", "Distance").number = 3
self.outputs.new("mn_VectorSocket", "Vector")
allowCompiling()
示例12: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_StringSocket", "1.")
self.inputs.new("mn_StringSocket", "2.")
self.inputs.new("mn_EmptySocket", "...").passiveSocketType = "mn_StringSocket"
self.outputs.new("mn_StringSocket", "Text")
allowCompiling()
示例13: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_FloatSocket", "Value")
self.inputs.new("mn_FloatSocket", "Frame")
self.outputs.new("mn_FloatListSocket", "Strengths")
self.outputs.new("mn_FloatSocket", "Strength")
allowCompiling()
示例14: init
def init(self, context):
forbidCompiling()
self.inputs.new("mn_ObjectSocket", "Object").showName = False
self.outputs.new("mn_MatrixSocket", "Basis")
self.outputs.new("mn_MatrixSocket", "Local")
self.outputs.new("mn_MatrixSocket", "Parent Inverse")
self.outputs.new("mn_MatrixSocket", "World")
allowCompiling()
示例15: init
def init(self, context):
forbidCompiling()
self.outputs.new("mn_StringSocket", "Lower Case")
self.outputs.new("mn_StringSocket", "Upper Case")
self.outputs.new("mn_StringSocket", "Digits")
self.outputs.new("mn_StringSocket", "Special")
self.outputs.new("mn_StringSocket", "All")
allowCompiling()