News:

 

Topic: copy obj/instances  (Read 5271 times)

0 Members and 1 Guest are viewing this topic.

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 16, 2015, 09:24:48 am
IStonia.
can you make pleas when you copy obj, all instances automatically become geometry, to be in obj? But in NVil they will stay instances.
« Last Edit: February 16, 2015, 09:27:05 am by samardac »
Portfolio: www.samardac.com

  • No avatar
  • Posts: 3713
  • Developer
  • Administrator
  • Polygon
February 16, 2015, 09:33:45 am
I think it works in this way already.

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 16, 2015, 10:55:08 am
I use this instruction to export to KeyShot, and it do not copy all instances.

I try to select all objects and only the base, nothing works.

TID Common Modeling Shortcut Tools >> Save Current Object Selection
TID Common Modeling Shortcut Tools >> Save Selection Mode
TID Common Modeling Shortcut Tools >> Switch To Object Mode
TID Common Modeling Shortcut Tools >> Select Objects By Material (Cascade)
Clipboard_Copy_File %obj%
TID Common Modeling Shortcut Tools >> Clipboard Copy (obj)
TID Common Modeling Shortcut Tools >> Restore Selection Mode
TID Common Modeling Shortcut Tools >> Paste Saved Object Selection

%obj% is variable - path to obj.
« Last Edit: February 16, 2015, 10:57:33 am by samardac »
Portfolio: www.samardac.com

  • No avatar
  • Posts: 2102
  • Polygon
February 16, 2015, 11:41:49 am
I use this instruction to export to KeyShot, and it do not copy all instances.

You would need to select the instances before export.
"Select Objects By Material (Cascade)" does not select instances.

You will need to temporarily deinstance before export.

Going from your example, you have pre-selected objects that have instances.

try this:-

Save current object selection
select instances
Deinstance
paste saved object selection
select objects (cascade by material)
copy to clipboard
undo
undo
undo
undo






  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 16, 2015, 12:19:43 pm
Yep it because "Select Objects By Material (Cascade)".

I just tested my plugin and found this, there is now way to export instances without deinstance them an all other steps that steve described.
IStonia can you pleas modify "Select Objects By Material (Cascade)" to select Instances too if they have the same material?
Portfolio: www.samardac.com

  • No avatar
  • Posts: 2102
  • Polygon
February 16, 2015, 12:39:36 pm
...............can you pleas modify "Select Objects By Material (Cascade)" to select Instances too if they have the same material?
By definition, "Select Objects By Material (Cascade)" is to select objects, not objects + instances. So I would prefer that command not to be changed in such a way.

IMHO, it would be better to add extra command if needed.


Maybe a good time to request boolean selections?

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 16, 2015, 01:07:32 pm
steve,
no problem may be just create new tool form "Select Objects By Material (Cascade)" and add this feature?
What is it boolean selections?
Portfolio: www.samardac.com

  • No avatar
  • Posts: 2102
  • Polygon
February 16, 2015, 01:28:38 pm
What is it boolean selections?

Similar to "Math selection", but would include objects/mesh/instances, sub-object selections across multiple objects, and ability to add/remove(boolean) current selection from stored group/selection.

Currently, we are limited to save/paste sub-object selection on a single object, and boolean selection on current/active sub-object selection.

« Last Edit: February 16, 2015, 01:37:44 pm by steve »

  • No avatar
  • Posts: 3713
  • Developer
  • Administrator
  • Polygon
February 20, 2015, 08:07:10 am
Try this
http://www.digitalfossils.com/Download/NVil-Feb-19-15.rar

  * Geometry > Create > New Material And Assign.
  * Edit > Customize > Tools > Common Modeling Shortcut Tools > Selection Boolean(Replace/Include/Exclude/Toggle).

You can have the instructions like this

...

TID Common Modeling Shortcut Tools >> Selection Boolean(Include)
TID Object Shortcut Tools >> Select Instances

...

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 20, 2015, 01:15:54 pm
IStonia,
All features works FANTASTIC!
Portfolio: www.samardac.com

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 20, 2015, 01:34:05 pm
IStonia,
May I ask you about some new command for Materials - Assign selected Material to selected objects.
With using 'Pick Material' these new command will allow us to select Material from one object and assign it to another object, without all steps in Material Window.

I think having:
-New Material And Assign.
-Pick Material
-Assign selected Material to selected objects
-Select Objects (Cascade By Material) (allow us to group objects by Materials)

All these make NVil the most powerful in terms of handling Materials.

I'll wait for this new command and will make tutorial that will show all possibles that we have.
« Last Edit: February 20, 2015, 01:58:31 pm by samardac »
Portfolio: www.samardac.com

  • No avatar
  • Posts: 176
  • Spline
    • White-creatures
February 21, 2015, 01:40:33 am
samardac, you can also combine the two steps into one.

I have a script that I use in Maya that I use all the time, I call it copy material.

The way I use it is select the first object that you want to copy the material from, then select the rest of the objects that you want to copy the materials to, and apply the command. All selected objects will then have the same material as the first selected.

It's a quick workflow without having to go through Material window.

  • Posts: 1697
  • Administrator
  • Polygon
    • http://samardac.com/
February 21, 2015, 07:22:55 am
miica,
very good idea, but how tobe if you want to copy material from poligon to object or vice versa?
Portfolio: www.samardac.com

  • No avatar
  • Posts: 3713
  • Developer
  • Administrator
  • Polygon
February 21, 2015, 07:24:21 am
I will make a "Pick Material And Assign" command.

  • No avatar
  • Posts: 3713
  • Developer
  • Administrator
  • Polygon
February 21, 2015, 11:06:41 am
Try this
http://www.digitalfossils.com/Download/NVil-Feb-20-15.rar

  * Edit > Customize > Tools > Common Modeling Shortcut Tools > Pick Material And Assign.