NP Station

A little local tweak and mod.
Changing ABC - A`B`C` order in Point Align and mod for 2D placement, based on it.

np_station (1D_mod 3).zip (114.0 KB)

Changing order gives more focus on objects during points marking - you are setting them on first object, and then you can just control where they should go, having initial point map already marked.
Maybe, also aligning B to B` instead of A to A` will be more suitable.
Can be interesting)

2D (XY) keeps Z level untouched, that allows to snap pure Z-axis rotation of objects that have variable height.
A very useful for roads and houses blocks combining.
Also, ability to set edge mode snapping is especially nice for that mod.

5 Likes

Is this the latest version? ThanksNP%20IS%20THIS%20THE%20LATEST%20VERSION

Hi 1D, Nice work and improvement !
Are you pushing those changes on github repo too ?
Could be a good idea to keep a track of work done on NP station on a single place.

did not work in b3d 2.8
i install it but is disappear in search panel

Actually, no, it is research fork)

About 2.8 - there is no sense to make 2.8 update until release.
For example, I don’t planning update our tools for a long time, partially because of my diamond donator membership, partially because grant was given for snaps improvements and it will be better to wait for 2.81

2 Likes

Nice! I was considering a mod like this with “B” as the align point, but forgot about it. I think I got sidetracked experimenting with another “face align” idea that never went anywhere.

:open_mouth: And it’s implemented as a modal to!

The modded version 1D_Inc linked to is based off the 2017_09_29 version of NP Station for 2.78 / 2.79. It won’t run on 2.80.

You have an updated version of NP Station on github?! I wish I had known earlier, I would have merged those changes in to the “official” version in addons-contrib. That is where I have pushed all my NP Station updates to.

I agree, especially with the snap improvements Mano is working on that could require API changes.

I did do some experimenting with a 2.80 version of NP Station that would be based around the code changes I made for my Three Point Arch tool (with some of the API updates in the addons-contrib version of NP Station), but the code is not very far along.

1 Like

Not yet, but maybe a good idea to make a guthub repo from current addon-contrib version so anyone could contribute / branch without bf commit rights ?

I was referring to this, but on second glance this seems to be a more generalized version of point_move for external use.

I looked into a github version of NP Station, but I could not find a nice way to share commits between a github version and the one in addons-contrib (without mirroring ALL of addons-contrib). The only way to share commits seemed to be by manually copying commits from one version to the other. That would eat up a lot of time and could lead to a messy git history.

Now I wondering who is maintainer of NP_Station.
I thought Okavango is)

I still consider Okavango to be the main author and maintainer. I originally started as an assistant maintainer for NP Station. It’s just with Okavango having had almost no time to work on NP Station in the past several months, I have become something of a “de facto” maintainer.

2 Likes

A little bugfix - XY Align now totally ignores Z heights on input.
np_station (1D_mod_5).zip (114.0 KB)

3 Likes

hi, nBurn
i want to use NP to 2.8, so i try to change some code in yours, but i have a problem can’t to solve now .


can you help me~ thank you:blush:

This error looks interesting:
object has no attribute 'user_preferences'

Which version of NP Station did you try to update from? The version of NP Station in addons_contrib that is included with the daily builds should have already had all instances of:
user_preferences replaced with preferences

If you are trying to get NP Station running on 2.80, this version of NP Station from addons_contrib is what I would recommend starting from as it has already some 2.80 updates applied:

np_station_(rBAC).zip (110.6 KB)

Getting the macro setup (the foo.define('bar') code in the register functions) running right can be rather troublesome though. This is one of the reasons why I have been experimenting with a rewrite of NP Station that would use modal operators instead of macros.

Update on the experimental 2.80 version

Here is the current work-in-progress version of “point move” without macros.
Note that this is an experimental version, so it is not recommended for use on any important or production level projects. This version is also missing some features and may work a little different than the “official” 2.7x version:

np_point_move_wip.zip
np_point_move_wip_v02.zip (2.8 KB)

point_move_wip1

This version expects LEFTCLICK to be the “point place” hotkey, but I plan to make this configurable in a future release. This is a downside to using modals in 2.80, (IIRC) it is not possible to have add-ons use the hotkey settings in user preferences. :frowning:

You can still change the add-on’s hotkeys by editing these lines in the “np_point_move_wip.py” file:

class Hotkeys:
    select = "LEFTMOUSE"
    cancel = "RIGHTMOUSE"
    cancel2 = "ESC"
8 Likes

Awesome work!

We should take a look at a way to expose such settings in addon prefs.
Will try to take a look as soon as possible.
In then meantime, great work done here (as usual), thank you NBurn !!

1 Like

Yeah, a built in key editor would be ideal. There’s already at least one “default” add-on with this option, mano’s snap_line_utilities. IIRC, Smart Select (commercial add-on) can also do this. Re-implementing point_move’s snap feature took more time than I expected and I had something come up, so I had not had a chance to look into how those add-ons implemented their hotkey editors yet.

1 Like

thanks you , i will use your version try again. and i have used your WIP addon

. it’s important for architects to use 3d software as blender.

it’s great to hear that np station for 2.8 has updated~ it’s difficult that study python and blender API by myself.

Looking forward tor release npstaion official version for 2.8 as soon as possible

1 Like

Hi
Thanks for releasing the original NP Tool and now for 2.8
I didn’t understand how this works in v.2.8.
After using it the wrong way a couple times, I figured it out BUT
Leaves rubbish “Mesh” named objects when not used properly and must somehow attach data to those and other objects. As it turned out, in the end no matter what object I picked and even after having purged the orphan mesh objects, the command would end up moving my active camera instead of the selected object!!
Has it corrupted some data? Is it the specifics of my file.

Edit:
It works in a simple small file.
When I load my current project it messes up. It starts moving cameras regardless of what object was selected when I initialize the edit, When it moves the camera it immediately changes it to an object called “Mesh”. After it’s done destroying my cameras… it starts with other objects.

Since it does not happen with every file I decided to upload the file.
Please note the file contains a couple of commercial material images that you are not allowed to copy or use. The file is uploaded only for testing purposes and I do not imply that the source materials can be copied or used. File is about 200MB

Edit: This large and complicated file is not needed. I have reproduced the bug in much simpler file, view the following post

Eek, I should have added a better disclaimer, but please do not use the “WIP” version for any serious or production level projects. It was intended only for experimental use, not as a replacement for the 2.79 version.

Yes, this was also an issue with the 2.7x version IIRC. I have not found a nice fix for this yet.

That is very strange, I have not seen anything like that before. The WIP version should only be moving objects that were selected before the tool was run. I tried the add-on with the blend file you uploaded and it is definitely doing something that was not intended, but I am not sure what is causing that bug.

If you have a file with assets you do not want to be made public, you can also send me a link in a private message.