ncr100
12-23-2014, 04:57 AM
I'd like to access individual server / plugin metadata.
This gets a list of plugin names.
__author__ = 'nick'
import lwsdk
# NOTE: scraped from "http://static.lightwave3d.com/sdk/2015/html/classes.html"
plugin_class_list = ["AnimLoaderHandler", "AnimSaverHandler", "AnimUV", "CameraHandler", "ChannelHandler", "ColorPicker", "CommandSequence", "CustomObjHandler", "DisplacementHandler", "Display3D", "EnvironmentHandler", "ExtRendererHandler", "FileRequester", "FrameBufferHandler", "Global", "HumanInterfaceHIDHandler", "HumanInterfaceManagerHandler", "ImageFilterHandler", "ImageLoader", "ImageSaver", "InstancerHandler", "ItemMotionHandler", "LayoutGeneric", "LayoutTool", "LightHandler", "MasterHandler", "MeshDataEdit", "MeshEditTool", "NodeHandler", "ObjectLoader", "ObjReplacementHandler", "PixelFilterHandler", "PolygonHandler", "ProceduralTextureHandler", "SceneConverter", "ShaderHandler", "VolumetricHandler"]
server_info = lwsdk.LWServerInfo()
plugin_list = {}
for plugin_class_name in plugin_class_list :
print "plundering plugin names of class", plugin_class_name
# Collect plugin name by class
plugin_list[plugin_class_name] = server_info.list(plugin_class_name)
print plugin_list[plugin_class_name]
# TODO how to get server ServerTagInfo for each element of plugin_list?
It generates something like ... ('AbsoluteMeasure', 'ActiveConnector', 'AddLuxigon', 'AddPowergon', 'Add_Center_Point', 'AdjustPolyMap', 'Align_Points_to_Axis', 'Align_to_Last_Point_X', 'Align_to_Last_Point_Y', 'Align_to_Last_Point_Z', 'ApplyMORF', 'AssignPivot', 'AssignPivot2', 'BandSaw', 'Bkg-To-MORF', 'BoneWeights', 'BorderSlice', 'BorderSliceQuad', 'BoundingBox', 'Bridge', ... and so on.
Now I want to get at each of these server's records.
This gets a list of plugin names.
__author__ = 'nick'
import lwsdk
# NOTE: scraped from "http://static.lightwave3d.com/sdk/2015/html/classes.html"
plugin_class_list = ["AnimLoaderHandler", "AnimSaverHandler", "AnimUV", "CameraHandler", "ChannelHandler", "ColorPicker", "CommandSequence", "CustomObjHandler", "DisplacementHandler", "Display3D", "EnvironmentHandler", "ExtRendererHandler", "FileRequester", "FrameBufferHandler", "Global", "HumanInterfaceHIDHandler", "HumanInterfaceManagerHandler", "ImageFilterHandler", "ImageLoader", "ImageSaver", "InstancerHandler", "ItemMotionHandler", "LayoutGeneric", "LayoutTool", "LightHandler", "MasterHandler", "MeshDataEdit", "MeshEditTool", "NodeHandler", "ObjectLoader", "ObjReplacementHandler", "PixelFilterHandler", "PolygonHandler", "ProceduralTextureHandler", "SceneConverter", "ShaderHandler", "VolumetricHandler"]
server_info = lwsdk.LWServerInfo()
plugin_list = {}
for plugin_class_name in plugin_class_list :
print "plundering plugin names of class", plugin_class_name
# Collect plugin name by class
plugin_list[plugin_class_name] = server_info.list(plugin_class_name)
print plugin_list[plugin_class_name]
# TODO how to get server ServerTagInfo for each element of plugin_list?
It generates something like ... ('AbsoluteMeasure', 'ActiveConnector', 'AddLuxigon', 'AddPowergon', 'Add_Center_Point', 'AdjustPolyMap', 'Align_Points_to_Axis', 'Align_to_Last_Point_X', 'Align_to_Last_Point_Y', 'Align_to_Last_Point_Z', 'ApplyMORF', 'AssignPivot', 'AssignPivot2', 'BandSaw', 'Bkg-To-MORF', 'BoneWeights', 'BorderSlice', 'BorderSliceQuad', 'BoundingBox', 'Bridge', ... and so on.
Now I want to get at each of these server's records.