define operator properties in the class, similar to django fields
# Before [ bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""), bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True), bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True), bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True), bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True) ] # After path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "") use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True) use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True) use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True) use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
This commit is contained in:
@@ -13,11 +13,6 @@ class RENDER_OT_netclientanim(bpy.types.Operator):
|
||||
bl_idname = "render.netclientanim"
|
||||
bl_label = "Animation on network"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -44,11 +39,6 @@ class RENDER_OT_netclientsend(bpy.types.Operator):
|
||||
bl_idname = "render.netclientsend"
|
||||
bl_label = "Send job"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -73,11 +63,6 @@ class RENDER_OT_netclientstatus(bpy.types.Operator):
|
||||
bl_idname = "render.netclientstatus"
|
||||
bl_label = "Client Status"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -118,11 +103,6 @@ class RENDER_OT_netclientblacklistslave(bpy.types.Operator):
|
||||
bl_idname = "render.netclientblacklistslave"
|
||||
bl_label = "Client Blacklist Slave"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -153,11 +133,6 @@ class RENDER_OT_netclientwhitelistslave(bpy.types.Operator):
|
||||
bl_idname = "render.netclientwhitelistslave"
|
||||
bl_label = "Client Whitelist Slave"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -189,11 +164,6 @@ class RENDER_OT_netclientslaves(bpy.types.Operator):
|
||||
bl_idname = "render.netclientslaves"
|
||||
bl_label = "Client Slaves"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -239,11 +209,6 @@ class RENDER_OT_netclientcancel(bpy.types.Operator):
|
||||
bl_idname = "render.netclientcancel"
|
||||
bl_label = "Client Cancel"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
netsettings = context.scene.network_render
|
||||
return netsettings.active_job_index >= 0 and len(netsettings.jobs) > 0
|
||||
@@ -273,11 +238,6 @@ class RENDER_OT_netclientcancelall(bpy.types.Operator):
|
||||
bl_idname = "render.netclientcancelall"
|
||||
bl_label = "Client Cancel All"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -305,11 +265,6 @@ class netclientdownload(bpy.types.Operator):
|
||||
bl_idname = "render.netclientdownload"
|
||||
bl_label = "Client Download"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
netsettings = context.scene.network_render
|
||||
return netsettings.active_job_index >= 0 and len(netsettings.jobs) > 0
|
||||
@@ -355,11 +310,6 @@ class netclientscan(bpy.types.Operator):
|
||||
bl_idname = "render.netclientscan"
|
||||
bl_label = "Client Scan"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
@@ -393,11 +343,6 @@ class netclientweb(bpy.types.Operator):
|
||||
bl_idname = "render.netclientweb"
|
||||
bl_label = "Open Master Monitor"
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
bl_props = []
|
||||
|
||||
def poll(self, context):
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user