Plz people can u check this but?!

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 08 August 2007   #1
Plz people can u check this bug?!

I just finished with modeling some character and when i try to skin it and paint weight i saw some bug and i was pissed off,

when i try to turn on in Paint Skinn Weight Tool->Stroke Reflection (x, y, z) this is what i got (nothing)



so, could any1 tell me how the hell i can turn this shit on!

i just cant believe that autodesk ****ed up everything

p.s. Maya 8.5 Sp1

Last edited by bazuka : 08 August 2007 at 08:03 AM.
 
Old 08 August 2007   #2
I`m not infront of Maya but I think that was only available when painting something other than skinCluster... that includes blendshapes, other kind of deformers, clusters... etc... but not a skinCluster. Although I never needed it because the Mirror Skin Cluster function is great.
__________________
reeview.it
Portfolio and Demoreel Review Service
 
Old 08 August 2007   #3
man thats stupid, i know that that thing worked in maya 7 and 8
 
Old 08 August 2007   #4
hmm just checked either in 7 and 8. It`s not working Seriously I`ve never seen it working on skinCluster. But why use this anyway? Why don`t you paint the half of your object then mirror the weights?
__________________
reeview.it
Portfolio and Demoreel Review Service
 
Old 08 August 2007   #5
no way man im 100% that i worked in maya 7 and i used this option...

why dont u check this script coz the men uses everything from maya and there is a mirror/reflect

http://www.highend3d.com/maya/downl...Tools-3034.html
 
Old 08 August 2007   #6
Always has worked, when in doubt... hack it. Artisan scripting is a pain in the ass, but one of the strongest skills a Character TD can have

artAttrSkinPaintCtx -e -projective true - reflection true `currentCtx`;

That will turn the projective with Reflection on for you and force the Paint Weights window to execute the mirror painting commands. Don't forget to turn Screen Projection off so you can use an exact mirror coordinate system.

enjoy!

-s
__________________
My opinions do not represent those of my employer.

Last edited by BoostAbuse : 08 August 2007 at 04:53 PM.
 
Old 09 September 2007   #7
Hi mr S.

Your clue helped me with a problem I had currently.
To be more precise, my checkbox for "reflection" was greyed out.
I wonder why.

The only way was using your tips to check/unckeck through mel:

 artAttrSkinPaintCtx -e -reflection true `currentCtx`; 
or
artAttrSkinPaintCtx -e -reflection false `currentCtx`;


Is there a way to make the checkbox work normal?
__________________
/Haider
www.haider.se
 
Old 02 February 2008   #8
Red face

Originally Posted by bazuka: no way man im 100% that i worked in maya 7 and i used this option...

Pretty weired.
I am currently using v7 and I also remember this option used to work.
Now that I am skinning, I can see the checkbox is greyed out.

Originally Posted by Haider: Is there a way to make the checkbox work normal?

So the question is; What MEL file is builing up this UI. Maybe its me who messed up some file or maybe a script that I am using that is overriding the standard UI-mel code??


Is there a way to make a toggle-mel code? I mean, if the UI cant be fixed, at least I could have a shelf button that works.
__________________
/Haider
www.haider.se
 
Old 02 February 2008   #9
About my second question; I managed to fix the toggle. Allthough it wasnt perfect:

string $refl = `artAttrSkinPaintCtx -q -rn artAttrSkinContext `;
 if ($refl == true)
 	artAttrSkinPaintCtx -e -reflection false `currentCtx`;
 else
 	artAttrSkinPaintCtx -e -reflection true `currentCtx`;
 



I have no idea how to use `currentCtx` instead of artAttrSkinContext. I guess `currentCtx` is better since it would work on other kind of Weight Painters.


edit: maybe this should be posted in the MEL section ...
__________________
/Haider
www.haider.se

Last edited by Haider : 02 February 2008 at 01:18 PM.
 
Old 02 February 2008   #10
The UI is stored as 'artAttrSkinProperties.mel' which should be in your scripts/others install path. That should pretty much give you the access you need if you wanted to trigger that toggle automatically when Maya loads to enable to checkBox.
__________________
My opinions do not represent those of my employer.
 
Old 02 February 2008   #11
Originally Posted by Haider: About my second question; I managed to fix the toggle. Allthough it wasnt perfect:

string $refl = `artAttrSkinPaintCtx -q -rn artAttrSkinContext `;
  if ($refl == true)
  	artAttrSkinPaintCtx -e -reflection false `currentCtx`;
  else
  	artAttrSkinPaintCtx -e -reflection true `currentCtx`;
  



I have no idea how to use `currentCtx` instead of artAttrSkinContext. I guess `currentCtx` is better since it would work on other kind of Weight Painters.


edit: maybe this should be posted in the MEL section ...


currentCtx works better as it defines the current context the tool is working with which is a fairly constant when working with artisan related tools at least in my experience.
__________________
My opinions do not represent those of my employer.
 
Old 02 February 2008   #12
Originally Posted by BoostAbuse: currentCtx works better as it defines the current context the tool is working with which is a fairly constant when working with artisan related tools at least in my experience.

All right, but how should I put `currentCtx` in yet another ` .. ` sentence? That's what I couldn't manage to solve.


Originally Posted by BoostAbuse: The UI is stored as 'artAttrSkinProperties.mel' which should be in your scripts/others install path. That should pretty much give you the access you need if you wanted to trigger that toggle automatically when Maya loads to enable to checkBox.


Couldn't actually find anything usefull after a quick look.
It seems however that the mirroring function is greyed out for sure in version 7.0 and 7.01.
To make sure I don't have a script that is causing this I removed my 7.0 folder with no difference.

And since I never play with the files inside the original maya folder I can't really imagine what removed the mirror option other than that it is completely removed since Maya7.
It must mean that last time I could do mirror was in Maya6.


Question is; Can the 'artAttrSkinProperties.mel' be tweaked and put locally so that the mirror option appeares again?
__________________
/Haider
www.haider.se
 
Old 02 February 2008   #13
Another way to write the code to toggle the brush on/off:

string $ctx = `currentCtx`;
artAttrSkinPaintCtx -e -reflection (!`artAttrSkinPaintCtx -q -reflection $ctx`) $ctx;

-Brian
www.meljunky.com
 
Old 02 February 2008   #14
If this sheds any light on it, from the docs on Mirror Skin Weights:

Reflection is disabled for the Paint Skin Weights Tool. Skin > Edit Smooth Skin > Mirror Skin Weights can be used as an alternative method to do reflection of the skin weights.
__________________
-Ben

 
Old 02 February 2008   #15
Originally Posted by meljunky: Another way to write the code to toggle the brush on/off:

string $ctx = `currentCtx`;
artAttrSkinPaintCtx -e -reflection (!`artAttrSkinPaintCtx -q -reflection $ctx`) $ctx;

Thanx Brian!

I'm so weak for short and smart code
The (! is for inverting a value, right?



Originally Posted by BenBarker: If this sheds any light on it, from the docs on Mirror Skin Weights:

Reflection is disabled for the Paint Skin Weights Tool. Skin > Edit Smooth Skin > Mirror Skin Weights can be used as an alternative method to do reflection of the skin weights.


Thank you, but I know this one already.
Thing is that while you're skind painting, you don't want to think "OK, I will paint on the one side and not caring about the other side because I am gonna mirror it later".
Mirroring while painting is very useful.

Only time I use Mirror Skin Weights is when I want to make sure that if one side is very good skinned, I will have the same skin paint quality on the other side. And that's for eg arms and stuff that you can't paint with the symmetry option turned on.



Now. It seems that the "Reflection" is greyed out only in the Skin Weight tool.
Using eg. Paint Selection Tool, Paint Attribute Tool and other allows you to turn on/off Reflection.
It must mean that a MEL file, either 'artAttrSkinProperties.mel' or antherone is tweaked so it greyes out the reflection setting.
Does anyone of you know how to tweak that MEL file to remove the greyed-out option?
__________________
/Haider
www.haider.se
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:07 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.