help > Changing color on 3D traces not working
Showing 1-2 of 2 posts
Display:
Results per page:
Sep 19, 2023  01:09 PM | muhibmethani
Changing color on 3D traces not working

Hello,


I am trying to change the color by SWC file type on Vaa3D. The way I work with my traces is I first edit them in neuTube and assign SWC file types to each branch according to the standard method: 1 is soma, 2 is axon, 3 is basal dendrite, etc. I can change the colors on neuTube but when I save them and open the traces in Vaa3D, it gives me a black soma with pink and red projections--something I would like to avoid. When I go to the object manager to try and change the color, it says that the entire neuron is a single trace and thus I can only change the color of the entire neuron, which is something I don't want to do. I want to see if I can make the soma yellow, dendrites blue, and axons red.


 


If you would like to see what I mean, attached are the traces for the neuron.


 


How would I go about doing this?


 


Best wishes,


Muhib Methani


 

Nov 30, 2023  07:11 AM | Lingli Zhang
RE: Changing color on 3D traces not working

Hello Muhib Methani,


there are several methods to help you to change type:


1, you can just drag the swc file into vaa3d, Ctrl-L to enter the line mode, and selete any curves,choose Alt-T, there will be a dailog to let you choose the color you want;


2, you can just write an python script, change the second column of swc files, the each row of swc files means (n type x y z r parent), change type you wanted.


If you have anyother problems, please tell me. 


Best wishes,


Lingli