Page 4 of 11 FirstFirst ... 23456 ... LastLast
Results 61 to 80 of 217
  1. #61
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    Thats a very interesting feature undergoing on here :-D
    Did you consider enhancing 3dCursor functionality by eg: full snap modes, origin definition, magnet ??



  2. #62
    The addon already supports snapping (see the wiki).
    As for origin definition and magnet... please explain in more detail %)



  3. #63
    Member Meta-Androcto's Avatar
    Join Date
    Aug 2006
    Location
    australia
    Posts
    4,047
    Code:
           # turn off undo
            undo = bpy.context.user_preferences.edit.use_global_undo
            bpy.context.user_preferences.edit.use_global_undo = False
    
            # restore pre operator undo state
            bpy.context.user_preferences.edit.use_global_undo = undo



  4. #64
    Ah, you meant global undo That wouldn't solve the problem, though... Even with Global Undo turned off, editmode switching is still recorded in Mesh Undo history (and as that, erases the history beyond this point). Even more, turning Global Undo on/off is recorded in blend's undo history too...

    Having an option to actually freeze undo history for the duration of some operations would be nice ^^

    For example:
    Code:
    with bpy.utils.freeze_undo_history():
        # ... do some sneaky operations
    # At this point, undo history is the same it was before freeze_undo_history().
    # Even more, the __exit__ method could actually revert any changes
    # (that may be undesirable, however).
    Last edited by dairin0d; 19-Nov-11 at 00:25.



  5. #65
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    Originally Posted by bluecd View Post
    Thats a very interesting feature undergoing on here :-D
    Did you consider enhancing 3dCursor functionality by eg: full snap modes, origin definition, magnet ??
    Have to explain honestly -I meant CAD style object snap (...ooooppzz for the word CAD here...):
    Snap (both in object in edit mode respectively) to
    1. 2D(regular): endpoint, midpoint(or s.c. divisor- every 'n'th segment of a given distance), tangent, node(Edit), center intersection
    , extension, perpendicular....
    2. 3D: Vertex, Midpoint on edge, center of face, perpendicular

    Origin definition: w/above manipulation so one could move and operate origin (local/world 0,0,0) easily, define it by 3 points(x,y,z on an object eg.) by object, by view, save&restore an ucs(User Coordinate System).

    Magnet: i meant defineable 'gravitation' to such abovementioned point within eg. range of circle Blender's cursor - so one could easily snap to a point w/no miss.
    So is this-in short..-)



  6. #66
    Hmm, CAD spannings and magnet... Seminumerical's cursor addon (Cursor Control) deals with some of them, and our addons seem to be generally compatible. To be honest, I'd like to see CAD tools in Blender too, but I have too little experience in this area to try to tackle such broad topic.

    As for user coordinate systems, I have an idea how to implement this hacky-way (using e.g. empties to store different systems; when user switches to such UCS, origin will be set to "cursor", cursor will be sticked to the empty, and a custom transform orientation will be aligned with the empty). Maybe I'd even add that before 2012 :P



  7. #67
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    That'd be MORE that awsome !...
    Feel free to treat me as your architect-consultant ;-)
    I described my point of view in Subtopic:

    http://blenderartists.org/forum/show...z-tool...8-%29

    As far as 'magnet' is not a must(though useful yet processor consuming, especially in 3d, dont know how python can handle that..) but osnap modes (vide Autocad) seem to be essential for precise manipulations. Also transformation by giving a reference a' la Autocad: scale, rotate, move, UCS defining by indicating reference points of some existing objects. Details to be discussed.
    Osnap modes work perfectly can be activated 'on the fly' - left hand on keyboard, right on the mouse ie. pressing some Alt/Ctrl/Shift + MouseButton simultanously.

    Just tell me your favourite beer/wine brand and we can start cooperating ;-)



  8. #68
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    some examples that illustrate my ideas:
    (first one-see command line for UCS manipulation options, second-preset snaps, third-on-the-fly(modal) snaps)





    Last edited by bluecd; 24-Nov-11 at 04:32.



  9. #69
    Member
    Join Date
    Oct 2011
    Location
    Stockholm
    Posts
    219
    Hi. I'm using this add on since I find it really nice. Unfortunately it works without any problem when I activate it in the preferences, but when I close Blender and reopen it, I keep getting Traceback errors:

    Traceback (most recent call last):
    File "D:\Blender\Blender 2.60\2.60\scripts\addons\space_view3d_enhanced_3d_ cursor.py", line 4881, in modal
    km = wm.keyconfigs.active.keymaps['Window']
    KeyError: 'bpy_prop_collection[key]: key "Window" not found'

    location:<unknown location>:-1

    Any idea about what's causing it?



  10. #70
    Hmm... What version/build of Blender are you using? Currently the addon uses an ugly hack to properly register keymaps on startup, but it works fine for the builds I have... I'll try to see if there is a better way to do it after 2.61 is out.



  11. #71
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    no object mode...??



  12. #72
    Err... bluecd, what do you mean by "no object mode...?" Was that supposed to be a bug report?



  13. #73
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    Originally Posted by dairin0d View Post
    Err... bluecd, what do you mean by "no object mode...?" Was that supposed to be a bug report?
    Wooouubbzzzz..., i took another Enhanced Cursor switched on. Your addon...I CANT ACTIVATE IN ADDON menu !!!!!



  14. #74
    Hmm, I've downloaded latest build from graphicall, seems to work just fine... Again, what version/build are you using?



  15. #75
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    already OK.sorry -i am just trying to get the idea how it works...(with ALT selects whole row)



  16. #76
    Member
    Join Date
    Oct 2011
    Location
    Stockholm
    Posts
    219
    I use this build: http://graphicall.org/444
    I tried on a previous one as well (2 days ago I think) and I had exactly the same error. I'm using maya presets and that's pretty much it, nothing else fancy.
    Last edited by chafouin; 28-Nov-11 at 16:28.



  17. #77
    Aha! The problem was with Maya keymap presets. Thanks for the report I fixed the issue, latest version of addon should work properly.



  18. #78
    Member
    Join Date
    Oct 2011
    Location
    Stockholm
    Posts
    219
    Thanks for the very quick fix, I'm really enjoying this cursor Actually moving vertices / edges / faces should be as easy as this!



  19. #79
    Member
    Join Date
    Oct 2011
    Location
    PL
    Posts
    471
    I have to admit you made a huge work - thank you a lot !!
    Yet let me some constructive critique: the functionality of the script ,although extent seems a bit complicated..
    How eg. could i grab a cube snapping it firstly w/holding MB(i got reversed L&R) and then...again trying to snap to a target-here (still dragging the object by snapped point) you cant activate 3d snap tripod again...,got to be like that?

    1. Does not seem to snap to curves ??
    2. I would suggest to add some option toggle switch:
    - either you move Blenders circular red-white cursor alone OR
    - you move the cursor AND the Blenders X,Y,Z tripod [Origin]. What do we need additional tripod for?
    What makes the axes alignment ? (for a cube they dont align the ortho edges...?)
    3. Midpoints of an Edge/Center of a Face possible to snap also ?

    Excuse my messing in Your results but I felt so comfortable You made sucha smart approach to the Problem of Snapping that i would like to suggest max. functionality features You can probably achieve...)
    Last edited by bluecd; 29-Nov-11 at 07:39.



  20. #80
    Err... bluecd, I don't really understand what you're trying to say %) I guess by "tripod" you mean 3D manipulator..? Maybe you can provide an explanation with screenshots of what you want to achieve?

    1. My cursor script currently snaps only to surfaces/polygons, or to edges/vertices that belong to surfaces. Recently I came up with an idea that may allow to snap to stand-alone edges and vertices too, but this is perhaps a long-term task.
    2. You can set pivot to Cursor -- this will make 3D manipulator move with cursor. As for "additional tripod" and "What makes the axes alignment", I failed to understand your idea %)
    3. To snap cursor to midpoints, hold Shift while in appropriate snapping mode (this should be explained in the wiki).

    As for suggestions, I have little free time right now, but I'll try to take them into account when I start working on CAD-like functionality.



Page 4 of 11 FirstFirst ... 23456 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •