Full Version: Nodeeditor extensions

From: Karsten (KMRQUS) [#1]
 14 Oct
To: ALL

Hello,

I want to post a cleaned up version of the nodeeditor extensions. I have changed some positions inside the menues and erased some obsolete files and nodes.
That causes that old node files prior created won't work with this version. To fix that you can open the node file with an editor and replace the old node references with the new ones ( find and replace). An overview of this references is given by the Deviations.xls file. Or you can use "sed". For the windows user I've made a simple batch file. First check if the path in the batch file points to the correct installation of sed. Place replaceNodes.bat in the folder where your node file is. Open cmd, go to the directory (cd command) and type:
>updateNodes.bat "what ever the name is.nod"<.
The "" is only necessary when there are Spaces in your file name. Best way type updateNodes.bat - Space - first letters of the file name and then the TAB-Key of the keyboard - then windows will complete the filename correctly.
It is also possible to do it inside the nodeeditor, but delete and place new node - including rewire - isn't a good idea - or what do you think Al, James, ...? ;-)

I think Mac user can get also sed. The linux users should have sed already. You can rename the replaceNodes.bat to replaceNodes.sh and make it executable. Cnange>c:\"Program Files (x86)"\GnuWin32\bin\sed.exe to sed. Maybe there are some ' ' necessary for the parameters s/BasicExt\/PointExt/Points2\/PointExt/g will get to 's/BasicExt\/PointExt/Points2\/PointExt/g'. I didn't tested it already.

link to sed:
http://gnuwin32.sourceforge.net/packages/sed.htm

Maybe there are some other tools that can do the job. As mentioned a simple editor with a replace function.

Have a nice day
Karsten

Attachments:
Deviations.xls
extensions.zip
updateNodes.bat

Reply


From: James (JFH) [#2]
 14 Oct
To: ALL

Hi Karsten,

Thanks for doing this.

Your new menus almost mirror exactly my removed Node folder attached to post:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8197.9
The biggest difference was my inclusion of Basic2 grouping of Camera, Watch, Hide Edges & Point (renamed sPoint to distinguish from the original)

I should probably have stuck to my guns, but I got spooked when I realised that it wouldn't be backward compatible. However you seem to have largely resolve this with sed; at least for windows users.

It's late here, so I will look into sed tomorrow (I'm a mac user)

Anyway, I hope your new scheme is widely adopted, because the old menus are a complete mess.

Good Night
James

Reply


From: Karsten (KMRQUS) [#3]
 14 Oct
To: ALL

Hello James,

for Mac users i found this info:
https://www.google.de/url?sa=t&source=web&rct=j&url=https://sites.google.com/site/randomprogrammingnotes/macosxsed&ved=0ahUKEwjUkNylpPDWAhVHnBoKHWddDSgQFgg2MAU&usg=AOvVaw07eLgmTJNNnW93uNHyZDdT

Karsten

Reply


From: mkdm [#4]
 14 Oct
To: ALL

Hi Karsten.

@You ; "...I want to post a cleaned up version of the nodeeditor extensions..."

Thanks a lot. Much appreciated!!

I just downloaded it and applied the text replace (I did it with Notepad++)

All works like a charm!

Thanks again for doing this "cleanup".

You know how much I value this kind of things :)

Have a nice day.

Marco (mkdm)

Reply


From: Karsten (KMRQUS) [#5]
 16 Oct
To: ALL

Hello Marco,

thanks for your Feedback.

Are there any others made experiences with converting old node files to get compatibility?
Or better Tools?

Have a nice day
Karsten

Reply


From: mkdm [#6]
 16 Oct
To: ALL

Hi Karsten.

You're welcome.

It's always a pleasure for me to help other developers at the debugging stage.

@You : "...Are there any others made experiences with converting old node files to get compatibility?
Or better Tools?.."

OK. ASAP I will do another test with different .nod files to see if all works fine or not.

As soon as it's done I will post a recap.

We'll catch up.

Ciao.

Reply


From: Mike (MGG942) [#7]
 16 Oct
To: ALL

Ah - cleaning up. A pain but necessary, every so often.
Thanks for making so easy.
Mike.

Reply


Reply to All

Back to thread list | Login

© 2017 Project Beehive Forum