News:

 

Topic: Samardac Bridges.  (Read 21816 times)

0 Members and 4 Guests are viewing this topic.

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
February 07, 2015, 11:44:06 am
I don't know much about folder permissions either. I don't think it's a good idea to mess with people's folder system.

Try this
http://www.digitalfossils.com/Download/NVil-Feb-07-15.rar
You can add something like this in NVil Instructions.txt

Clipboard_Copy_File_AppData_Roaming Samardac\Bridges\MyModel.obj
Clipboard_Paste_File_AppData_Roaming Samardac\Bridges\MyModel.obj


...
c:\Users\Samardac\AppData\Roaming\Samardac\Bridges\
...

You have two Samardac!!!

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 07, 2015, 12:12:19 pm
Can not get it to work,
this is what in NVil Instructions.txt: Clipboard_Copy_File_AppData_Roaming Samardac\Bridges\transfer.obj

My directory is: c:\Users\Samardac\AppData\Roaming\Samardac\Bridges\

NVil deletes Instructions.txt but do not save file into \Samardac\Bridges\.

Quote
You have two Samardac!!!
Yep it is because my UserName is Samardac  :)
Portfolio: www.samardac.com

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 07, 2015, 12:14:19 pm
Also may be you will modify this command and make it without _AppData_Roaming ?
I can get it inside AHK, but may be some users will want to copy somewhere outside _AppData_Roaming? May be even me  ;D
Portfolio: www.samardac.com

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 07, 2015, 02:32:49 pm
IStonia,
Just found that Selecet Objects by material(cascade) selects by material selected in Material window.
So there is no way to Select(Cascade) selected object.
You have first go to material window selects material you need and after that run Select(Cascade).
Could you pleas make command Select Material by selected object/objects?
So if object has not only one material assigned, it will selects one of them.
Need it to finish export from NVil to KeyShot. I want user just select object and run Export, without dealing with material window.

« Last Edit: February 07, 2015, 02:34:35 pm by samardac »
Portfolio: www.samardac.com

  • No avatar
  • Posts: 2103
  • Polygon
February 07, 2015, 07:34:05 pm
Just found that Selecet Objects by material(cascade) selects by material selected in Material window.
So there is no way to Select(Cascade) selected object.


Why not use:-
Commom modeling shortcut tools >> Pick material
Commom modeling shortcut tools >> Select objects by material (cascade).

You then just need to move mouse cursor over object(material) in viewport and run those 2 commands.



  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 07, 2015, 08:11:06 pm
Because, there is no way to keep cursor on object and at the same time push button on plugin GUI to start export.
Portfolio: www.samardac.com

  • No avatar
  • Posts: 2103
  • Polygon
February 07, 2015, 08:27:04 pm
I do not understand.

Are you saying you start export plugin before selecting objects?

I would of thought you select objects first, then export them.

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 07, 2015, 09:10:26 pm
Quote
You then just need to move mouse cursor over object(material) in viewport and run those 2 commands.
How can I move mouse cursor over object and run command from plugin GUI at the same time? Cursor is on object or on plugin GUI.
No way...

What you suggest is:
1. Select object
2. Run shortcut - Pick material staying on object.
3. Go to plugin GUI and run export.

Step 2 is absolutely not good for plugin because:
1. User must set up this shortcut.
2. I have to told user to run this shortcut before push button - Export on plugin GUI.

What I want is:
1. Select object
2. Run export.
That is all, no any excess steps.
« Last Edit: February 07, 2015, 09:12:19 pm by samardac »
Portfolio: www.samardac.com

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
February 07, 2015, 10:21:14 pm
Try this
http://www.digitalfossils.com/Download/NVil-Feb-08-15.rar

* You can ALSO use this
Clipboard_Copy_File filefullPath
Clipboard_Paste_File fileFullPath

*Selection > Select Objects (Cascade By Material). It uses the current selected objects as the starting point. You can add this into your instruction text.

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 08, 2015, 03:35:08 pm
IStonia,
Select works but file do not save. What can be wrong?

NVil Instructions.txt :

TID Common Modeling Shortcut Tools >> Select Objects (Cascade By Material)
Clipboard_Copy_File c:\Users\Samardac\AppData\Roaming\Samardac\Bridges\transfer.obj
Portfolio: www.samardac.com

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
February 09, 2015, 08:29:41 am
It works on my side.

Do you have this line in your text?
TID Common Modeling Shortcut Tools >> Clipboard Copy (obj)

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 09, 2015, 08:38:35 am
No I don't.
Looks like I do not understand how to use Clipboard_Copy_File.
Can you pleas write instruction how to copy file in some directory?
Portfolio: www.samardac.com

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
February 09, 2015, 08:42:51 am
This is my text

----------

Clipboard_Copy_File c:\Users\kun\AppData\Roaming\Samardac\Bridges\transfer.obj
TID Common Modeling Shortcut Tools >> Clipboard Copy (obj)

----------
"Clipboard_Copy_File" only tells the location. Nothing else. Likewise "Clipboard_Paste_File".

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 09, 2015, 09:05:25 am
Aaa...
Ok, now everything is working, I thought Clipboard_Copy_File, copy file, but it only tell path, thanx.

Portfolio: www.samardac.com

  • No avatar
  • Posts: 3760
  • Developer
  • Administrator
  • Polygon
February 10, 2015, 10:45:49 am
Test with this
http://www.digitalfossils.com/Download/NVil-Feb-09-15.rar

I fixed a bug which causes crashes on polygon selection.