Jump to content

twk

Member
  • Posts

    877
  • Joined

  • Last visited

Everything posted by twk

  1. Greetings all, I'm trying to display a preview of my PIO in a dialog. Somewhat like the Custom Stair tool(attached). Would using the CreateImageControl function cater to this? Dev Wiki says Whats hImage refering to? The plugin object handle? THanks in advance Tui
  2. Greetings all, The vectorscript language had a neat feature where in your code you force values to have a certain dimension regardless of the Document Unit settins. eg. Procedure UnitThing; VAR somvalue : REAL; Begin; somevalue := 50mm; MoveTo(0,0); LineTo(somevalue, 0); end; Run(UnitThing); A line would be drawn to 50mm regardless of the documents units. If the doc units were set to Feet and Inches it would draw a line of 1.9685" in length. however in python I can't seem to get this to work. Am I correct to assume that this won't work in python?
  3. Hi Jonathan, That was a custom Node I made. Testing my novice python scripting. Expert coders please amend as you see fit. --Edit-- Apologies, just clarifying, the node is custom made, the scripting internally is actually the result of exploring how to implement using the AutoHybrid feature into our in office plugins. I found out that the AutoHybrid object is actually a Custom Object. Thats what the internal script of this AutoHybrid Node manipulates. Hope that makes sense. Tui
  4. Nice marionette example Jonathan. I've made an addition as well, placing the 3D objs into an AutoHybrid node I made quickly. I havent tested in extensivley on other objects so everyone make sure your auto-saves are on!
  5. ..aaaand its not called 'immediate feedback' its called python caching. Found this thread here started by Dieter @ DWorks. Can we disable Python caching? Interesting read. The last post though solved my problem. Thanks Musisback!
  6. Hello again Quick question, how do you get immediate feedback while developing plugins in Python. eg I have a plugin object which I'm writing in Aptana. This is the code in the PIO's main script window. from TestPlugin import MainGuy #these are setup in the env paths MainGuy() the MainGuy.py has this code global LineLength objectName, objectHand, recordHand, wallHand = 0, 0, 0, 0 LineLength = vs.PLineLength ok, objectName, objectHand, recordHand, wallHand = vs.GetCustomObjectInfo( objectName, objectHand, recordHand, wallHand ) if ok: vs.Locus(0,0) vs.Locus(LineLength,0) vs.Rect(0, 0, LineLength, 50) if __name__=='__main__': mainguy() pass if I change say a value for the vs.rect call from 50 to 100 vs.Rect(0,0,LineLength, 100) from Aptana, this doesnt get reflected in vectorworks until I restart VW. I have the Session in Developer Mode set in the vectorworks preferences and still I need to restart. This wasn't the case in Vectorscript and includes. Is this normal behaviour for Python/Aptana or am I doing something wrong?
  7. I haven't read them yet. Will get to it after some python courses I'm doing.
  8. Hi Neil, I've updated the PDF attached here, (I couldn't edit the original post for some reason). This PDF includes the Texture Nodes, a disclaimer and also licensing for distribution as-is under the GNU 3.0 licensing. Also Jim has transfered all of this to the Vectorworks Developers Wiki Marionette_Node_Reference, where I believe the most up to date info for current and upcoming nodes will be. I will most likely not be updating this PDF as the Dev Wiki would be the best place for that info. Thanks Tui
  9. Dieter, this looks like an invaluable resource. I am just getting my head stuck into python after losing sleep over VS.hehe. People tell me python is good for file access/os access/external libraries galore/etc. So I'm slowly making the switch. Your dlibrary modules, do we just download that straight from that website? Or is there a better way? Clone? what does that mean? Looks helpful, if I knew how to use it.lol Thanks in advance Tui
  10. Hi Gio, What a surprise to see a new set of plugins. I havn't tried your plugins yet but will do when I find some time(with the VW2016 recent release and all). You should probably have posted this in the Third party plugins forum. 3rd Party Services-Products Eager to try them out. Regards Tui
  11. Interesting approach Dom, haven't tried to scripts via worksheets but they look they could solve alot of headaches..
  12. That's great Mark, Some additional questions/feature requests: 1. Why was it implemented at 1:1 scale? Just out of curiosity. It would seem more practical to have it as page-based-scaled object that isn't affected by layer scale you're on. But thats just my preference, if I understood the reason it was developed to be used at a 1:1 scale I could use it better. 2. You know how some of the input nodes have the user enter parameters(eg Dim/Int/Real/etc), it would be great if that info(the data input parameter value) could be seen on the actual Marionette Node object. That way when you're examining a node network and you see input nodes, you can also see the value of the input node without have to click on that node and look at its info on the Object Info palette.(hope that makes sense). Thanks again Tui
  13. Ah, I see .That specifying path tip to is better for me as most of in-house VS plugins have includes on a server. Thanks Josh. Tui
  14. Interesting reads W.. thanks for sharing. I have been trying to figure out VS on my own, let alone Python/C++, and its always nice to have someone walk you through these things. Looking forward to the rest Tui
  15. Hello All, VS has the {$INCLUDE ..} syntax for externally referencing code. How do you do the same in python? Or must you used modules? Thanks in advance Tui
  16. LOL.. On a serious note, here are some ideas I thought of: Inputs: - Obj Name via Names list dropdown on OIP {similar to Get Texture Node} -Get Names of Symbol/Hatch/LineStyle/Wall Style/etc similar to above, choosing names from dropdown list on OIP - Dialogs? Like the basic predefined ones on the Dev Wiki. And come to think of it a way to build dialogs via Marionette would be awesome too! - Distributor Nodes - Duplicate on Path, Duplicate on Axis similar to the cloner object in Cinema4D - DTM Nodes - Send To Surface; Surface Area - Worksheet Nodes - Value from Cell Ref, Format Opts, Edit Cells - Viewport Nodes - Class/Layer Viz, Set/Get Class overrides{Fill/Pen Attr/Texture/etc} - Sheet Layer Nodes - Get/Set Sheet Number/Sheet Name/Sheet Position, {Will help greatly with renaming/re-ordering sheets!} Also, is there a way to add back the box position for Marionette Node Objects? Thanks in advance! Tui
  17. This is great Mark, Does this mean new Marionette Nodes will be added to each SP release? Can we make requests for the next SP release? I have some requests
  18. From Dev Wiki def vs.ForEachObject(callback, c): return None Try this.. import vs; def setname(h): vs.SetRField(h,"Lighting Device","Symbol Name","Conventional"); crit = "(((PON='Lighting Device') & ('Lighting Device'.'Device Type'='Light')))" vs.ForEachObject(setname, crit) Disclaimer: Not Python expert
  19. Hi All, Looking at the code for the Get Texture Node it shows that there is a Obj Info Widget called PopupTextures? selectedTexture = Marionette.OIPControl('Texture', Marionette.WidgetType.PopupTextures, 0) However this isn't documented in the Dev Wiki What other types of widgets are there? that aren't shown in the wiki? I'm particular interested in every resource type popup type from the OIP. (Obj Names in File, Symbols, Hatches, etc).. Am I looking in the wrong place? Thanks Tui
  20. Tim, I reuploaded a proper PDF, the initial upload had the pages mixed up.
  21. Greetings All, Marionette just got released here in NZ for service select members and I was going through documentation trying to find a list of all standard Nodes shipped with initial install. No luck so created my own. I did this because I came to realise that each node operation can be examined through the script editor which is great for python novice's like myself.(Props to VW Dev's!). Making it easy for you to create your own custom nodes..but then the question came as to what nodes are already there? Which ones would I have to create(eg. wall/slab/roof info extractor[wall ht, wall comp area, roof area,etc]) and which ones I didn't need to create(eg Objs by Criteria, etc). I had an idea to add input and output node types, but will have to get to that later on. Hopefully that much awaited manual will be out soon.
  22. From this previous post by me Viewport Class Overrides and the like If you allow a hook into the line type and pen thicknesses at least, it would save us heaps of hours having to select a viewport and pain-stakingly scroll through 100's of classes to find the one your looking for and override it. Also using the eyedropper for VP class overrides and visibilities is ok until you have two viewports that you want to eyedropper a single class' properties across without carrying properties of any other class. You can't do this, which we need to be able to do. If there was such a function through VS/Python/SDK we could fix this ourselves. How do we go about asking for additional functionality to be added to the scripting language? or SDK? Is it through here - Wishlist forum? Kind regards Tui
×
×
  • Create New...