Muscles names and name colors

Hi Soren,
We would like to change the muscle colors and the color names(the
label).
By the moment, we have got to change the muscle colors. We have
created different files by each color. For example, by green we have
create a

“DrawSettingsGreen.any” changing the settings that refer the colors,
for red we have create a “DrawSettingsRed.any” etc,…

We would like to known if we could to define in
the “DrawSettings.any” file all colors. This way we would use a
unique file by all muscles.We had thought to

include in “DrawSetting.any” of our model:
AnyFolder MuscleRed ={
AnyVec3 RGB = .Colors.AnyBodyRed;
AnyVar DrawOnOff = 1.0;
AnyVar Bulging = 1.0;
AnyVar ColorScale =1.0;
AnyVec3 RGBColorScale = {0.957031, 0.785156, 0.785156};
AnyVar MaxStress = 100000.000000; //N/m^2 //This number is for
graphics only!
AnyVar Transparency =1.0;
};
AnyFolder MuscleGreen ={
AnyVec3 RGB = .Colors.AnyBodyGreen;
AnyVar DrawOnOff = 1.0;
AnyVar Bulging = 1.0;
AnyVar ColorScale =1.0;
AnyVec3 RGBColorScale = {0.785156, 0.957031, 0.785156};
AnyVar MaxStress = 100000.000000; //N/m^2 //This number is for
graphics only!
AnyVar Transparency =1.0;
};

we would like to change the color of names(label). This way we could
distinguishing the muscle and the name with the same color.
In “Muscle.any” where the muscle is drawing :
Org={
AnyDrawVector DrawName = {
Vec = {0.0,0,0}; //use zero length
Line.Thickness = 0.1; //arbitary value
Text = “Coracobrachialis 2”; //make reference to name
Line.RGB=Main.DrawSettings.Names.RGB;//make reference to color
};
};
AnyDrawMuscle DrwMus =
{#include “…/drawSettings/MusDrawSettings.any”};

In the line: “Line.RGB=Main.DrawSettings.Names.RGB;//make reference
to color”
It refer the color of names and in the DrawSettings.any we change
this:

AnyFolder Names={
AnyVec3 RGB= .Colors.AnyBodyGreen;
AnyVec3 ScaleXYZ={0.01,0.01,0.01};
};

We don´t look any change in the Model View, and we change the
ScaleXYZ too.

In short, We would like to known if we could to define in
the “DrawSettings.any” file all colors and uses it for muscles and
color of names(labels).

Can you help us, please?

Best regards.

Hi Raul

In principle this is possible and you seem to be doing it in the
right way.
Unfortunately it seems that some graphics cards have a problem
showing the text in the specified colors by AnyBody. Please try to
export the picture by pressing the camera icon on the modelview. If
you look at this picture it will most likely show the colors in the
correct way like you have specified in the script?

If this is the case the error is related to the graphics card, then
we would like to have the data of your graphics card, please send
this to support@anybodytech.com. I am unsure what we can do about
this at the moment, we are trying to find a pattern of which
graphics cards that have this problem.

If the exported picture looks the same way as the Modelview picture
we would also like to know this, then the problem is a different one.

I did not understand the issue about the ScaleXYZ please explain
this in more detail.

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, Raúl Borraz Lamiel
<raulborrazlamiel@…> wrote:
>
> Hi Soren,
> We would like to change the muscle colors and the color names(the
> label).
> By the moment, we have got to change the muscle colors. We have
> created different files by each color. For example, by green we
have
> create a
>
> “DrawSettingsGreen.any” changing the settings that refer the
colors,
> for red we have create a “DrawSettingsRed.any” etc,…
>
> We would like to known if we could to define in
> the “DrawSettings.any” file all colors. This way we would use a
> unique file by all muscles.We had thought to
>
> include in “DrawSetting.any” of our model:
> AnyFolder MuscleRed ={
> AnyVec3 RGB = .Colors.AnyBodyRed;
> AnyVar DrawOnOff = 1.0;
> AnyVar Bulging = 1.0;
> AnyVar ColorScale =1.0;
> AnyVec3 RGBColorScale = {0.957031, 0.785156, 0.785156};
> AnyVar MaxStress = 100000.000000; //N/m^2 //This number is for
> graphics only!
> AnyVar Transparency =1.0;
> };
> AnyFolder MuscleGreen ={
> AnyVec3 RGB = .Colors.AnyBodyGreen;
> AnyVar DrawOnOff = 1.0;
> AnyVar Bulging = 1.0;
> AnyVar ColorScale =1.0;
> AnyVec3 RGBColorScale = {0.785156, 0.957031, 0.785156};
> AnyVar MaxStress = 100000.000000; //N/m^2 //This number is for
> graphics only!
> AnyVar Transparency =1.0;
> };
> …
>
>
> we would like to change the color of names(label). This way we
could
> distinguishing the muscle and the name with the same color.
> In “Muscle.any” where the muscle is drawing :
> Org={
> AnyDrawVector DrawName = {
> Vec = {0.0,0,0}; //use zero length
> Line.Thickness = 0.1; //arbitary value
> Text = “Coracobrachialis 2”; //make reference to name
> Line.RGB=Main.DrawSettings.Names.RGB;//make reference to
color
> };
> };
> AnyDrawMuscle DrwMus =
> {#include “…/drawSettings/MusDrawSettings.any”};
>
> In the line: “Line.RGB=Main.DrawSettings.Names.RGB;//make
reference
> to color”
> It refer the color of names and in the DrawSettings.any we change
> this:
>
> AnyFolder Names={
> AnyVec3 RGB= .Colors.AnyBodyGreen;
> AnyVec3 ScaleXYZ={0.01,0.01,0.01};
> };
>
> We don´t look any change in the Model View, and we change the
> ScaleXYZ too.
>
> In short, We would like to known if we could to define in
> the “DrawSettings.any” file all colors and uses it for muscles and
> color of names(labels).
>
> Can you help us, please?
>
> Best regards.
>