Jump to content
3DCoat Forums

[SCRIPT] VoxTree layer and shader names to CSV


ajz3d
 Share

Recommended Posts

  • Contributor

ajz_voxTreeShaders2csv

I wrote the script for my own use several weeks ago, but I think there's nothing wrong with sharing it. Perhaps someone will find it useful.

DESCRIPTION: The script iterates through the whole VoxTree, collecting names and bound shaders of each visible layer. It then writes this information to a CSV file which can be opened by a spreadsheet application of one's choice.
The script might be useful if you have a very complex scene with dozens of objects and shaders and you want to inspect which objects use which shaders. It can also be helpful when planning things in the retopo room.
If you forget where you saved your file, check the script execution log: Scripts->View execution log.

INSTALLATION: Copy ajz_voxTreeShaders2csv.txt and ajz_voxTreeShaders2csv.xml to %USERPROFILE%\Documents\3D-CoatV4\Scripts\ExtraMenuItems and restart 3D Coat. The script will be accessible through File->Export menu.

CONFIGURATION: There's more detailed information on how to configure the script in the ajz_voxTreeShaders2csv.txt file. Please read it before using the script.

 

Drop me a word if you have any questions, ideas or find a bug.

 

Thanks.

ajz_voxTreeShaders2csv-1.1.zip

Edited by ajz3d
  • Like 1
Link to comment
Share on other sites

  • 7 months later...
  • Member

Thank you for a great script. 

I read scripting Manual and ajz scripts.

It became the great help of my script learning.

 

Now,I am would like to create a similar script to change the voxel parent.

I am looking for a way to get the parent of voxel or to count the number of subTree.

 

I know these selection and adding voxel scripts will work.

cmd("$VoxTreeBranch::Root[1][0]");

cmd("$VoxTreeBranch::+[5]");
Do you know something about VoxTreeBranch command?
 
Is it exist like this Function?
GetCurVoxParent("childVolume1");
SetCurVoxParent("Root");
Link to comment
Share on other sites

  • Contributor

Hello Coverman.

Thanks, I'm glad you like the script. :thank_you:

 

I don't know how you can get the parent of a volume. Sadly, I don't think it's possible ATM.

But to set the parent of currently selected volume, you can use:

cmd("$Root") // To move the layer to Root level.
or:

cmd("$ChangeParentElm_"+layerName); // To change its parent to layerName (string data type).
 

I strongly encourage you to make a feature request on Mantis (http://3d-coat.com/mantis/) regarding VoxTree parent getters and setters.

Edited by ajz3d
Link to comment
Share on other sites

  • 4 months later...
  • Advanced Member

This is pretty great.  I am hoping to modify it so that it can print out the transforms of each vox layer for exporting instances.  I can't seem to find any references to a getTransform command.  am I being dense?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...