I can retrieve the plug`s value from data block.

Thanks

On Friday, February 17, 2017 at 6:28:59 AM UTC+7, Michael Boon wrote:
>
> localPosition is a static function that returns an MObject. I guess that 
> means it's an attribute, not a value, and you probably need to create an 
> MPlug in order to access the value. You could check its apiTypeStr() to be 
> sure. Hopefully that points you in the right direction.
>
>
> On Saturday, 11 February 2017 17:58:14 UTC+11, Denil Son wrote:
>>
>> Hi 
>>
>> I just wrote my first custom locator plugin and I am not be able to 
>> access the localPosition attribute.
>>
>> Everytime I freeze the transform , the shape snap back to the origin.
>> I know i have to do something with these local attributes, since when i 
>> alter it, It doesnt move the shape.
>>
>> maybe 
>>
>> glVertext3f(MPoint[0] * localPositionX, MPoint[1] * localPositionY, 
>> MPoint[2] * localPositionZ)
>>
>> Can i get those attribute in initialize() function ?
>>
>> My purpose is to make those local attributes affects the shape.
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/318447c3-accf-4f0e-8624-bbd5df4b7363%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to