Jump to content
AutoDesSys Forums

¢hris £und

Moderators
  • Content count

    1,105
  • Joined

  • Last visited

  • Days Won

    63

Reputation Activity

  1. Like
    ¢hris £und got a reaction from 3dworks in Handle underlay via API   
    They may,  Utility scripts do still work.  So, the underlying system is still there  (of course, that may change with 9).
    I suspect that the underlying architecture of things like the FUIM   and possibly the callbacks may have changed thus breaking all others.
     
    True, it would be convenient to keep FSL Running for at least versions 9.x  to give time to transition to Python.
    I am looking forward to converting my scripts over ( I don't have hundreds though )
     
    We have not been told what to expect for the environment.  We don't know if it will use the Systems install with fZ Libraries loaded.  Or does it use a "Python" type syntax and have it's own interpreter/Compiler.    I am hoping for the Former, so that there can be integration into the system.
     
    Too, there has been some very scant hints of a visual scripting environment added too.  Alas,  there is even less info on that.  Don't know if it will be included with 9  or yet a later release.
     
     
    I too am willing and ready to beta test the Scripting SDK.   Will even Alpha test.  I would like to shake out any bugs right away!
     
    Tech/Dev?????????    Hint, Hint  
     
    ¢£
     
     
     
  2. Like
    ¢hris £und reacted to poco2017 in formZ 9   
    Asking for “wish lists” is always dangerous – But here goes mine.
     
    As a new user of Python, I'd prefer 3.6 but I recognize that the shear volume of 2.7 code means that it's not going away anytime soon. Hopefully the SDK will anticipate a future upgrade?
    Multiple Labels – Ability to switch labels based on some criteria such as the view, a attribute or condition. Sooo – the ability to access all these conditions within the script for any object.
    Unicode Support – Pass through of Unicode text from Python to FormZ text and Labels. Not just limited to ASCII – necessary for international support.
    Ability to import RTF text and retain any formatting. Ability to format RTF text within Python and pass through to FormZ.
    Ability to access and read/write all object attributes and ability to add accessible custom attributes to any object. This would allow the user to build a custom library of objects, specific to the user which contain pertinent info.
    If TK/QT is not included – the ability to create and address user IO panels containing the standard widgets such as text boxes, buttons, ck boxes, dropdowns,lists, etc.
    Custom Spreadsheets – very important – to create and fill by script all cells/rows of user SS including control over formatting.
    Access, search, filter, all attributes of all objects including general plan data.
    Access and control of standard matrix commands to transform, rotate, move objects, etc. ability to read for each object, the end point , snap points, parallel, perpendicular, objects etc.
    Mimic keyboard input for all FormZ commands.
     
  3. Like
    ¢hris £und reacted to Tech in formZ 9   
    Here are some answers to the questions about python scripting in form•Z 9.
     
    form•Z 9 uses standard python 2.7.  In essence we have developed a Python interface for form•Z that allows python scripts to access information in form•Z and use form•Z features while using the standard python language and features.
     
    The Python standard libraries can be used (by including the proper import statement in the script).
     
    You technically could use third party libraries like TK/QT, however as form•Z is not built on these interfaces, your interfaces will be disconnected from the form•Z interface and may even cause some conflicts (window ordering issues etc). You should use the form•Z provided UI functions to leverage the existing interface and capabilities (rendering, interaction, picking, snapping, palettes, undo etc). Since we are using standard python, you should be able to use any conforming python library that you have installed on your machine and that is available to any python implementation.
     
    We look forward to hearing more about the types of scripts you wish to develop and we expect this to be a dynamic dialog as we expand what can be done with scripting in form•Z 9 going forward. We hope to make a technology preview of the new script features available sometime March.
     
    Next we will post a few WIP  examples.
  4. Like
    ¢hris £und reacted to Tech in formZ 9   
    WIP python script to create a Hidden Line rendering (saved in a tiff file) of each view, in each formZ project file, in a user selected folder:
     
    import formzPythonInterface as fz
     
    import os
     
    def fzMain():

    # ask user for folder to render
    source_path = fz.uiSelectFolder("Select Source Folder")
    os.chdir(source_path);
    list_dir = []
    list_dir = os.listdir(source_path)

    for file in list_dir:   # for each file in folder
      if file.endswith(".fmz"):   # check is its a fmz file
       project = fz.loadProject(name=file)  # load the file, save reference to close
       if(project):
        viewList=[]
        viewList = fz.getViewList()    # get the list of saved views
        for view in viewList:     # for each saved view
         fz.setActiveView(view)     # select the view
         fz.setRenderer("Hidden Line");   # select the renderer
         fz.render();       # render
         s = os.path.splitext(file)[0] + "-" + view.getName()  # make name file-view
         fz.export("tif",name=s,keepExisting=0)      # export tiff file
        fz.closeProject(project,save=0)        # close project
     
     
  5. Like
    ¢hris £und reacted to Tech in formZ 9   
    WIP python script to make steps. This script creates a live interface with sliders and a check box. When the user changes a UI element, makeSteps is called to create the new steps (watch movie below  to see it in action)
     
     
    import formzPythonInterface as fz
     
    num_stairs = 24
    bot_width = 48.0
    top_width = 248.0
    do_reverse = 0
    olist=[]
     
    # create the new steps
    def makeSteps(panel):
    global olist
     
    # remove objects from last iteration
    while (len(olist)):
      obj = olist.pop()
      fz.delete(obj)
      del obj
     
    # get values from UI
    num_stairs = panel.getValue(1)
    bot_width = panel.getValue(2)
    top_width = panel.getValue(3)
    do_reverse = panel.getValue(4)
    direction = panel.getValue(5)

    wdh = fz.xyz(12.0, 12.0, 1.0)
    org = fz.xyz(0.0, 0.0, 0.0)
     
    # make steps
    for n in range(0, num_stairs):
      wdh.x = bot_width + (((top_width-bot_width)/float(num_stairs)) * float(n))
      obj = fz.cube(org, wdh, [0,0,0])
      s =   "Step %d" % (n)
      obj.setName(s)
      #  obj.rotate()
      org.y += 12.0
      if do_reverse:
       org.z -= 10.0
      else:
       org.z += 10.0
      olist.append(obj)
     
     
    def fzMain():

    panel = fz.uiPanel("myStepOptions")    # creates the uiPanel

    panel.slider(1, "Number of Steps", num_stairs, 3, 43)
    panel.sliderEdit(2, "Bottom width", bot_width, 12.0, 48.0)
    panel.slider(3, "Top width", top_width, 48.0, 248.0)
    panel.check(4, "Reverse", do_reverse)

    panel.presentPalette(newValueFunc="makeSteps")      # show on screen
    Untitled.mov
  6. Like
    ¢hris £und reacted to Des in How could I model this chair?   
    Hi Andy,
    I'd be interested to see other uZers approach to model this too.
    I had a ten minute attempt on the chair back where I sweeped a facetted closed surface on a facetted path with reduction to .6. (left of image).
    I split it into separate parts (right of image) and used subdivision on each part with the sharpness on the sides set to 70%.
     
    This is the result (centre of image). Maybe with a bit of tweaking you could make it look more like your image.
     
    Other than that, maybe skinning is the way to go and would probably give more accurate results.
    Maybe Anton could throw some light on this as he's done some nice soft furniture before?
     
    Des
     
    ChairTEst.fmz.zip

  7. Like
    ¢hris £und reacted to Des in Maxwell Render   
    I wouldn't mind doing more interior modelling and rendering if I got the chance.
    I find it more enjoyable even if it is time consuming.
     
    Des
     



  8. Like
    ¢hris £und reacted to Takeharu_Yabe in text position and rotation not being retained with 8.5.5   
    Hi Ztech,

    Any update on this?
    I have just updated formZ from v6.6.2 to v8.5.6 .
    Position and size of texts are going wrong when I am importing dwg and dxf  in v.8.5.6 .
     
     
    Fortunately I have v6, but it would be bothered for some new user, they do not have old versions.
    and then they would leave formZ ...
    so it's critcal I think.
     
    regards,
    Takeharu Yabe
     

  9. Like
    ¢hris £und got a reaction from Andre Conlledo in formZ 9   
    Ready for it any day!
  10. Like
    ¢hris £und reacted to poco2017 in formZ 9   
    Thinking about my previous inquiry? -- I'm going to expand somewhat although I expect the answer will be "wait and see".
     
    1. What implementation of Python will be used? -- CPython, JPython etc. or some special compiled hybrid?
    2. Will the standard library be included?
    3. Will Formz use the standard TK graphical interface or will we be limited to a few internal GUI's??
    4. Will Formz allow the user to add additional libraries? Are any 'add-on' libraries included such CSV etc. outside the standard? OR will the interpreter be completely closed to the user?
     
    Excited about the coming new features of V9 and I think a 'heads-up' would be nice. I seen some script attempts by other Vendors that were developed completely in the dark and when released were so limited because of no practical input, that they were virtually useless and beyond repair? Just Asking since I think now is the time to plan for and anticipate future expansion(s)?
  11. Like
    ¢hris £und got a reaction from AHTOH in One past job I`m not ashamed   
    Phenomenal work!
     
  12. Like
    ¢hris £und reacted to Tech in formZ 9   
    Updated teaser....simple example of python script in formZ 9 with live interface.
     
     
    fzUiLive.mov

  13. Like
    ¢hris £und reacted to Paulji in Inference Locking   
    Inference locking is available in FormZ but I don’t believe is not mentioned as such in the FormZ Manual. It’s a term used in Sketchup to mean a system that locks your cursor along an axis in reference to any point, edge, guide, or face. In FormZ, inference locking is available while using the Guide, Draw, or Transform tools. I'll review each type before making a suggestion.
    INFERENCE LOCKING TO A POINT:
    To lock the cursor to any point in space (whether to a point on another object or to a point on the object you are drawing) you move your cursor along an X, Y, or Z axis and hold down the shift key. This "locks" your cursor along that axis. Then hover your cursor over any point of an object (Snaps ON or OFF) and a gray colored line displays perpendicular to the locked axis to that point, then click to execute.
     
    This is identical to the procedure one uses in SketchUp.
    See 01_Inference Lock_Point:

     
    INFERENCE LOCKING TO AN EDGE/GUIDE:
    FormZ does not have Inference locking to an edge however it does have cursor locking and snapping to a guide. This can be done fairly quickly. “Snap to Intersection” or the “Stick to Edge” option in the Snap Options should be ON.
     
    When drawing or transforming, first create a Temporary guide (Ctrl+spacebar or Cmd+spacebar) over a point on the edge. Next, lock the cursor to an axis by holding the SHIFT key while moving the cursor toward the guide.
    See 02_Inference Lock_Temoray Guide_Intersection Snap:

    See 03_Inference Lock_to Guide Temporary Guide_Stick to Edges:

     
    INFERENCE LOCKING TO FACE:
     
    FormZ does not have an inference locking to a face plane as does Sketchup.
     
    In the example below a V-line was drawn on the XY-plane and locked (with the SHIFT key) on the
    X-axis. While holding the SHIFT key the cursor hovered over a face with an active custom plane (the Snap to Face was ON). The V-line attached to the cursor did not terminate at the reference plane of the face. The V-line projected past the object’s reference plane as shown penetrating the brown rectangle that was drawn on the object’s reference plane.
    See 04_Inference Lock_Object Plane_FormZ for Example of Inference Locking to the Plane of a Face: (Not Available in FormZ):

     
    See 05_Inference Lock_Object Plane_SU for Example of Inference Locking to the Plane of a Face: (Shown above in SketchUP):

     
    My suggestion is that FormZ add the features of Inference to Edges and Faces.
     
    Inference locking.pdf
  14. Like
    ¢hris £und got a reaction from etroxel in Where is the UV Editor with UV Unwrap?   
    Justin, 
     
    You can think of UV mapping as a reverse projection (simplification).   Where the 3D Coordinates are laid out in 2D space so that a full map can be built.   Then the mapping is reversed to apply to the 3D object/Space.
     
    Simple objects work well for projection mapping, but complex organic forms, not so much.   At least in any kind of seamless mapping.
     
    Of course, in order to do this, there is distortion.  but when building the map, this can be accounted for because the UV's are provided.
     
    A good UV system would be great in fZ.  Especially with the newer modeling tools.
  15. Like
    ¢hris £und reacted to Rudy Daverveld in Render Capabilities Form Z   
    Hi All, ZWeb,
     
    After the major upgrade from 6 to 7 and 8 I was hoping to see some development in the rendering and surface styles department. Off course the third party plugins are welcome for some of us and I purchased a version of maxwell aswel. But the workflow and render times are not to my satisfactory. Also it brings another application which has upgrades and costs and so. Not my first choice.
    It has been many years that we have seen some new developments in that area. So now the modeling and interface possibilities have been updated I am hoping to see som steps being made in the rendering and surface styles department. 
    I am thinking:
     
    Surface styles:
    - glowing and light emitting materials
    - displacement materials
    - fresnell effects
    - refraction
    - translucency
     
    Rendering and other
    - issues resolved like the ambient occlusion not being catched by a catcher material in combination with alpha background
    - multi pass layer rendering (Alpha, shadow, specular, reflection)
    - 360 spherical or cube maps camera for VR is a must now, we had this and now it is really useful it is gone.
    - natural lighting system
    - VR AR export options
     
    Lightworks, the renderzone engine partner, is now heavily moving towards iRay, is the development of Lightworks still going? And if so what is to be expected in this area.
    I know this always difficult to talk about, but since we have not seen any progress in the last 4 or 5 years I think it is a relevant question for Zweb. If the path is not to develop the render options in Form Z this would be good to know too, then I have to set my view to working with one of the third party solutions.
     
    Kind regards
    20 years plus user! and still loving it!
     
    Rudy Daverveld
    Visual 8
     
     
  16. Like
    ¢hris £und reacted to Paulji in 3D and 3D Delta Axis and the Input Palette   
    A Better Suggestion...to graying out the Custom Reference Plane axis:
     
    After more thought, I'd like to revise my suggestion.  
    While in 3D or 3D Delta mode the fact that a user has gone to the trouble to create a custom reference plane or enters a relative base point or point  (F4) on a temporary reference plane should inform the program to anticipate that the user intends to use the ative reference plane's base point and XYZ axis to input X,Y, Z values rather than coordinate values of the X,Y,Z axis of the World Cartesian system.
     
    New Suggestion:
    I suggest that whenever a point is selected on a temporary or custom plane the Plane mode is automatically activated for coordinate input, and whenever a relative base point (F4) is selected on a temporary or Custom plane the Plane Delta is automatically activated.
     
    Should a user wish to override this an d maintain the coordinate input of the previously active world cartesian coordinate system they can toggle the 3D or 3D Delta override by double clicking on either the 3D or 3D Delta pulldown.
     
     
  17. Like
    ¢hris £und reacted to archigraphica in Workflow suggestion needed.   
    It's exactly for this reason that we need the OLD tool options that you could set the specific number of facets (like most other 3D programs) of a curved spline or surface.  Percentages of 100 don't mean anything when you're exporting.  All the faceting scheme options and there's on where to put in a simple number like "40" so I have 10 segments every 90 degrees. This has been very frustrating since 7.
  18. Like
    ¢hris £und got a reaction from 3dworks in formZ 9   
    Easier in the sense that you can use Python for other things.  Opposed to FSL, where you couldn't.   Less to learn = easier.
  19. Like
    ¢hris £und got a reaction from Michxealexing in accept other Unit System as input:   
    that is, I pretty much work in English, however it often enough comes up where I get metric measurements from clients.
     
    It would be real nice to just put in something like 10m  and have Z auto covert it to 32.80839895 ft for me.
    Presumably, this would be helpful for people working the other way as well.
     
    if Z can discern ' from "   is should also be able to do mm, m  km etc...  without having to switch project settings.
     
    Thanks!
     
    ¢£
  20. Like
    ¢hris £und reacted to Takeharu_Yabe in formZ 9   
    Wow! this is cool!
    I can use Python in formZ finally!
  21. Like
    ¢hris £und reacted to Tech in formZ 9   
    teaser....example of python script in formZ 9
     
     
    steps.py.zip

  22. Like
    ¢hris £und got a reaction from Michxealexing in accept other Unit System as input:   
    that is, I pretty much work in English, however it often enough comes up where I get metric measurements from clients.
     
    It would be real nice to just put in something like 10m  and have Z auto covert it to 32.80839895 ft for me.
    Presumably, this would be helpful for people working the other way as well.
     
    if Z can discern ' from "   is should also be able to do mm, m  km etc...  without having to switch project settings.
     
    Thanks!
     
    ¢£
  23. Like
    ¢hris £und got a reaction from Michxealexing in accept other Unit System as input:   
    that is, I pretty much work in English, however it often enough comes up where I get metric measurements from clients.
     
    It would be real nice to just put in something like 10m  and have Z auto covert it to 32.80839895 ft for me.
    Presumably, this would be helpful for people working the other way as well.
     
    if Z can discern ' from "   is should also be able to do mm, m  km etc...  without having to switch project settings.
     
    Thanks!
     
    ¢£
  24. Like
    ¢hris £und got a reaction from Michxealexing in Snap Options - Suggestion   
    No issues,  other than my curiosity.
     
    Are there any others like this that are listed?
     
    Method/Function overloading
    https://en.wikipedia.org/wiki/Function_overloading
     
  25. Like
    ¢hris £und got a reaction from Michxealexing in Snap Options - Suggestion   
    No issues,  other than my curiosity.
     
    Are there any others like this that are listed?
     
    Method/Function overloading
    https://en.wikipedia.org/wiki/Function_overloading
     
×