Jump to content

Paolo

Member
  • Posts

    162
  • Joined

  • Last visited

Everything posted by Paolo

  1. Yes, you can apply / select a material, then the material texture is applied. Texture is controlled in the texture tab of the OIP.
  2. Fill and strokes are still driven by classes… I’ll exclude classes (when material is checked On) in a next update.
  3. Not quite like to add chamfer (selecting edges), but drawing rectangles in 3D working plane (by hooking onto the panel itself) should be also easy. Then transform that rectangle(s) in Moulding on 3D path (see moulding plugins). Adjust the profile and other settings to your needs. Do the same on the other panels, or drag / copy onto other panels. Door profiling.mov
  4. A year since the last update, here's the new version, free for old registered users. It includes, among many other news and improvements, the support for materials. The new version (5) is only for Vectorworks® 2022 Full changelog on the site at the link below: https://fitplot.it/vwplugins/mouldings.html#latest Changelog: New profiles libraries: Fypon (Fypon Mouldings Search Page) Dykes (Dykes Mouldings Browse Catalog) Updated Signorini catalog Now the full library contains than 2300 profiles! New Plugin object named Cannetè meaning a particular decorative technique characterized by a series of narrow repetitive half rounds / grooves / rects along a path. New menu tool Canneté Calculation to compute canneté elements in the current layer, subdivided by section's size. User can give the length of the rod the elements are cut from and the program returns the number of rods needed, along with a detailed cuts list. New menu tool Siding Calculation to compute sidings elements. As the above, but for sidings elements. All plugins objects include material control (a check box), as well as a better management of the textures (in the texture panel of the OIP). Classes support is still available, of course. Frame (Rectangular) plugin (and Frames (Array) plugin) now include the 'None' item in the frame profile popup. Frame (Array): new Rail at base (extra) parameter, to increase just the rail at base. Also you can have a Frame (Array) object with styles and rails without necessarily set a frame, just set the frame profile to "None" in the profile popup (see above). Improved path management for PIOs using paths, such Moulding on 2D Path and Moulding on 3D Path. Easily import / exchange paths choosing from a wide variety of objects (lines, rects, arcs, polygons, polylines etc.). You can also use the tools NURBS to Moulding or 2D Path to Moulding to convert many kind of objects (lines, rects, arcs, polygons, polylines etc.) respectively into Moulding on 3D path or Moulding on 2D path plugin objects. Especially for Mouldings on 3D path, you can draw / compose 2d shapes in a 3D working plane (for example a rectangle onto a door panel), then create a moulding out of it! Bug fixing. Error founds have been corrected.
  5. I get vs.GetPt() working in an event driven plugin object (VW2022 on MacOS) with this trick: def PickPointCallback(pt): h = vs.PickObject(pt[0], pt[1]) if h != None: resultStatus, parmName, parmHand, parmRecordHand, wallHand = vs.GetCustomObjectInfo() if parmHand != None: #do your things with the picked object #at the end of the callback function call this vs.SetObjPropVS(kObjXHasCustomWidgetVisibilities, True) #plugin event loop theEvent, theButton = vs.vsoGetEventInfo() if theEvent == kObjOnInitXProperties: … elif theEvent == kObjOnAddState: … elif theEvent == kObjOnWidgetPrep: … #then in the button hit event, where the get point is called… elif theEvent == kObjOnObjectUIButtonHit: if theButton == buttonID_2: #set widget visibility to false vs.SetObjPropVS(kObjXHasCustomWidgetVisibilities, False) vs.GetPt( PickPointCallback ) #finally the reset event elif theEvent == kResetEventID: … # Without setting custom widget visibilities, calling vs.GetPt() crashes Vectorworks!
  6. Objects 3D that are constructed within Vectorworks primitive tools (extrusions, extrusions along path, etc.) have full texture controls in the object render pane. This is not true for custom plugin objects that creates parametric 3D objects, as far as I know… Just the texture choice is available… Is there a way to show all the options?
  7. Mouldings Plugin are not developed with the SDK, but in VectorScript (event driven plugin objects). In Vectorscript there is no GetTextureMappingInfoN() function. I am still searching a way to customise the render pane, but until now, I did not found any satisfying solution. I do not know why if you create e 3D object (e.g. a simple extrusion) you get the full options on the object render pane, while if you create a 3D object through a plugin object, the object render pane is limited to the texture popup and texture choices. Somebody knows why?
  8. @ParkerJames have you typed 25 in the price field?
  9. Mouldings Plugins version IV.6 just published on Gumroad® What's new on version IV.6: Version for Vectorworks® 2022 (tested). Added the Mouldings catalog, a pdf file, complete with searchable indexes, that can be consulted and printed for a quick reference of all profiles included in the package. The catalog is available both in A4 and Letter page sizes. Added the ability to choose attributes by class or either override fills and lines with the attribute palette. More complex plugins (frames etc.), where more than just one class is required, will take attributes of their individual parts from their given classes (in OIP see classes popup for each part) unless you choose different fills or lines in the attributes panel. In that case the plugin object attributes will be used for all classes. About textures and renderings, in the OIP rendering tab, choosing: • None: will use the solid color fills as above said • Class Texture: will use each class texture (whenever set) • Texture: selecting a (custom) texture from the ones present in the document, will cause that texture to be applied to the whole parts of the object You can control, as always, some of the texture parameters (scale, rotation etc.) for each part (where available) of the plugin object in the OIP, see texture controls. Thanks to @Andy Broomell and @MarcelP102 for suggesting the point 3
  10. About materials, I am still figuring a way how they would live / interact with classes. I am a little confused at this point... About the other @Andy Broomell suggestions I agree with him. Plugins objects where one class only is required (corner or mouldings on path), are easy to manage: you will be able to set attributes by class or override fills and lines with the attribute palette. The rendering (oip) tab will allow you to set texture to none, class or by one of your choice. More complex plugins (frames etc.), where more than one class is required, will take attributes of their part by their given classes (in oip classes popup for each part) unless you choose different fills or lines in the attributes panel. About the texture, in the rendering tab, choosing none will use the solid color fills in rendering as above said. Using by class, will use each class texture (whenever set), otherwise choosing a texture from the list, will cause that texture to be applied to the whole parts of the object. I am at a good point with these changes, hope to test and finish up them in a short time.
  11. Solved! GetTextureRefN and SetTextureRefN do the trick!
  12. Thank you @K.Lalkovski, I have had confirmation that with the new SP2 the problem has disappeared!
  13. How can I get programmatically the value (in an event driven Plugin Object) of the texture popup in the OIP rendering tab?
  14. It’s not my PC (I am on mac), they gave me these details, hope it’s enough. The build is SP1 2022[27.0.1(619242)] The PC is: Windows Intel64 Family 6 Model 158 Stepping 12, GenuineIntel Windows-10-10.0.22000-SP0 AMD64 10.0.22000 uname_result(system='Windows', node='Asus-ROG-Stix-Z390E', release='10', version='10.0.22000', machine='AMD64') the reported error is the following (issued by the VerifyOrGetLib() function) And after that it comes the alert in my script
  15. Hello @K.Lalkovski, here we are again… still the Marionette.VerifyOrGetLib() does not work on Windows, Vectorworks 2022, importing Pillow module. Here below the code I am using, with the appropriate wheel files. It works on macs (arm or x86), but does not install nothing on Windows. Previously, with Vectorworks 2021, it worked… Can you address me (us) to a fix, even creating a temporary alternative function to the VerifyOrGetLib()? Also I am still getting the same warning (see post dated january 5 in this same thread) after the (correct) module installation on mac. import platform import Marionette arm64 = ('arm64' in platform.machine()) (major, minor, maintenance, platform, buildNum) = vs.GetVersionEx() #vectorworks 2022 has python 3.9.2 if platform == 2: PIL = 'https://files.pythonhosted.org/packages/20/ec/15a263f2c65d71cf62aa767f774c2381077e07beb1e9309a94461ec1cd29/Pillow-8.4.0-cp39-cp39-win_amd64.whl' else: PIL = 'https://files.pythonhosted.org/packages/32/25/32889d2b7c577b5a454dd12194b2ecb9d87d4b49c15c278dc99bc8ff5d2e/Pillow-8.4.0-cp39-cp39-macosx_10_10_x86_64.whl' #for mac M1 if arm64: PIL = 'https://files.pythonhosted.org/packages/7d/88/a59b397f030e131accd4ca5a2ad7f1ac62347e6f4aadbe3dabd329aaded9/Pillow-8.4.0-cp39-cp39-macosx_11_0_arm64.whl' result = Marionette.VerifyOrGetLib('PIL', PIL) if result: vs.AlrtDialog('PIL module is correctly installed:\n', PIL) else: #PIL not installed vs.AlertCritical('Attention!','It has been not possible to install the PIL module.') cc: @tbexon, @DomC
  16. I am still playing with materials. As I have seen, some native objects OIP (extrusions, for example) got an option (checkbox) to choose the use of materials. Once this checkbox is checked, a popup for materials appears to choose from and this overrides the class. Unfortunately there is no way, in the plugin objects parameters list, to get easily this behaviour. I'd have to provide the checkbox, then populate the menu with the document's available materials. In case of objects with more classes (for example the frame plugin), each class needs its own alternative material. I feel that a material menu will be available in the plugin's parameter types soon (as it was for the classes popup), so I am hesitating a while because it needs a bit of an effort… and I do not want to reinvent the wheel.
  17. Hello @Andy Broomell These days I am testing my plugins with Vectorworks 2022 beta, SP0B2 (Build 602031) PRERELEASE (64 bit). About the Mouldings plugins package, simply moving / copying the 2021 files in the corresponding locations in 2022 (and importing your 2021 workspace) it works. Just it takes to manually open and re-save (as 2022) the file in Libraries/Defaults/Moulding - Models/Cornices/MouldingsLib.vwx Pay attention to remove any VWBackup folder that may be eventually created inside Libraries/Defaults/Moulding - Models/Cornices/. As soon as I get a VW2022 final version, I'll provide to upload an update to Gumroad® and let it know to all registered users. Of course, later, I'll explore new functions and possibilities that this new release could allow.
  18. @MarcelP102 About the new material functionality, having to support both 2020 and 2021, I am still sticked with classes. I am studying a way to bridge class to material control, but I am at an early state, though... One profile is one closed polyline (or polygon) and one only. If you want to get, for example a crown moulding composed of two different profiles / materials, you can easily create and save both profiles (.cpf files) sharing the same point of insertion, then create the Mouldings 2D of the first, duplicate and select the second profile / material (material is here meant as class). There are many facilities to manage the mouldings plugins, for example you can start from a 2D path to get a Moulding 2D, or extract a path from a Moulding 2D object. You can even "import" a new path on an existing Moulding object. When you choose a profile (from library or from a saved cps file), the path of the profile is embedded as a symbol in the document. Whenever you modify the symbol in the document, all objects using it, will adopt the changed symbol once they are regenerated. This, of course, does not affect other documents where the same profile is used. Currently only one profile is repeated. You cannot do random stack, but you can create a complex custom profile (made out of three, for example), but you have necessarily to compose them into one (adding a joining surface). Another interesting way is to use wisely the repetition pace, leaving gaps in one siding object, to be filled with another siding object. The use of the offset fields allows to move the starting piece at the right point. In this way you can set different classes for each siding object (though the siding object already takes into account a different class for even and odd pieces). About translations, you are welcome.
  19. I have just updated the Mouldings plugins package (for Vectorworks® 2020 and 2021). https://fitplot.it/vwplugins/mouldings.html Old customers should receive an e-mail to get the update for free. Changelog (version IV.5): The library dialog has been dramatically sped up! Also libraries and symbols are now alphabetically sorted . New library organisation: Basic Profiles folder (containing the mandatory profiles) renamed (previously was named Classic); New England Classic folder now gathers the previously scattered libraries and symbols. 🆕 Lenoble Lumber Mouldings 🆕 Real Cedar (sidings) Updated the script in MouldingsLib to build custom libraries of profiles. Bug fixed in the Sidings plugin. Updated the price (for new users) now starting from €25.
  20. Distortion 3D plugin is now available through the Gumroad platform or directly from my site https://fitplot.it/vwplugins/distort3D.html#shop Price is 5€ Vectorworks Italian users will get this for free since it should be part of a future service pack.
  21. Distortion 3D is a plugin "tool" that was missing in Vectorworks! The plugin calculates and apply the transformation matrix to distort the selected 2D shapes according with the handles new position. It is based on the math used in my previous PlumbBob plugin. It works on 2D objects as points, lines, rects, ellipses, arcs / circles, rounded rects and, of course, polygons and polylines. The plugin is currently under beta testing, I'd like a couple of volunteers to test it. In the end, beta testers will get a "signed copy" 😉 of the finale release. video distort 3d.2021-02-08 18_05_49.mp4
  22. Hello @LARElias, follow exactly the instructions you find here: https://fitplot.it/vwplugins/mouldings.html#installation Once done, you should have all the tools in your workspace. Try one plugin, for example Moulding on 2D path, click on the library button in the OIP to check if libraries are correctly connected. You should see the appearing dialog populated with the available profiles: Let me know if this works or not. If you still got problems, let me know something more (error messages, screenshots, Vectorworks version, operating system etc.). I am here to help you.
×
×
  • Create New...