Search the Community
Showing results for tags 'event'.
Found 4 results
It would be great if you could place a camera operator in Spotlight and click on them to see their view. Also with the ability to change the camera settings the same way that a camera operator would. I know that you could insert a camera on top of an operator but it would be great to click on the camera position and be able to see what they see. Also include pan, tilt, and zoom relative to what the camera could do. Thanks!
New to scripting for vectorwork, so apologies if I am asking a simple question... I am scripting a PIO that includes a collection of lights, I want to put a parameter in the OIP that works like the color picker that shows up there when inserting an individual light. Functionally I can do numerical fields to capture the RGB data but without the color picker it's a long processes to get the right color. Is there any way to put a "color" parameter in a python script so that it shows up in the OIP as a color picker button?
David Bengali posted a topic in VectorscriptHi all, I am creating a Linear plug-in object, and trying to catch and respond to the event where a user changes the LineLength by moving one of the two built in control points of the object. However, I cannot seem to figure out what event / state change this qualifies as. The vso states I know of are: vs.kCreatedReset = 0 vs.kMovedReset = 1 vs.kRotatedReset = 2 vs.kParameterChangedReset = 3 vs.kObjectChangedReset = 4 vs.kLayerChangedReset = 5 vs.kExitFromEditGroup = 6 vs.kObjectNameChanged = 7 Below is an example of some code I have used to try to detect this state change. Alerts appear as expected for move, rotate, attribute change, and parameters changed either in the OIP or by moving an added Conrol Point parameter in the drawing, but when I drag the two points that are actually built in to the PIO, although I do receive 3 for the event, triggering the ResetEventHandler in this case, no alert fires off for any of the checked state changes. It seems that this state change is not one of those listed above. I expected it to be a Param change along with possibly a rotation and position change, depending on which of the two points was dragged. Can anyone advise on what state I need to check for, and how I can capture the new and old value for line length, rotation, and position that could have been adjusted by this action? def execute(): global objname, oh result, objname, oh, rh, wh = vs.GetCustomObjectInfo() theEvent, message = None, None theEvent, message = vs.vsoGetEventInfo() if theEvent == vs.kObjOnInitXProperties: #5 #enable eventing for this plug-in vs.SetPrefInt( vs.kParametricEnableStateEventing, 1 ) #590 result = vs.SetObjPropVS(vs.kObjXPropAcceptStates, True) #18 elif theEvent == vs.kObjOnAddState: #44 message = vs.vsoStateAddCurrent( oh, message ) elif theEvent == vs.kParametricRecalculate: #3 ResetEventHandler() def ResetEventHandler(): global objname, oh if vs.vsoStateGet( oh, vs.kCreatedReset ): vs.AlrtDialog("Object Just Created") if vs.vsoStateGet( oh, vs.kMovedReset ): vs.AlrtDialog("Object Just Moved") if vs.vsoStateGet( oh, vs.kRotatedReset ): vs.AlrtDialog("Object Just Rotated") if vs.vsoStateGet( oh, vs.kParameterChangedReset ): vs.AlrtDialog("Parameter Changed") if vs.vsoStateGet( oh, vs.kObjectChangedReset ): vs.AlrtDialog("Object Changed")
I was wondering if there could be a carpet tool for the events section. The tool could have the following items. 1) Stock Carpet Widths & Roll Sizes. 2) Places Data inside object after created. Meaning it will label itself like the Hoist Tool. 3) Can select carpet type from tool 4) Tracks Rolls of Carpet use and Costs 5) Lets you select room and automatically carpets with data inputted. 6) Creates Carpet Report 7) Carpet Layout Tool Would allow you to easily carpet and event where you may use different colors of carpet or material in the event! I know I could use this everyday in the Event world. I would imagine it could be used in the architectural word as well.