You should just pass it back into a PyNode which should instance it back to 
a class.

import pymel.core as pm

my_class_node = pm.PyNode('animal_RIG_A001_v001:body_Fur01Shape')

On Saturday, 17 July 2021 at 00:40:44 UTC+1 atu...@gmail.com wrote:

> I've
> animal_RIG_A001_v001:body_Fur01Shape
> Which is of type : <class 'pymel.core.nodetypes.PgYetiMaya'>
> I converted it to a string and it looked like this:
> 'animal_RIG_A001_v001:body_Fur01Shape' type 'str'
>
> Now I need to get this string and go back to the type:
> <class 'pymel.core.nodetypes.PgYetiMaya'>
>
>
> How do I make it come back after I made it to a string?
>

-- 
*MILK <http://www.milk-vfx.com/>** VISUAL EFFECTS**
*

Tel: *+44 (0)20 3697 
8448*





* *

This message is intended solely for the addressee and may 
contain confidential and/or legally privileged information. Any use, 
disclosure or reproduction without the sender’s explicit consent is 
unauthorized and may be unlawful. If you have received this message in 
error, please notify Milk VFX immediately and permanently delete it. Any 
views or opinions expressed in this message are solely those of the author 
and do not necessarily represent those of Milk VFX. 

By engaging in 
professional correspondence with Milk VFX, we may store your contact 
information for future reference. This is in line with Milk’s Privacy 
policy which can be found here. 
<http://www.milk-vfx.com/wp-content/uploads/2018/05/Milk-VFX-Privacy-Policy-May-2018.pdf>
 
Milk Visual Effects is a registered limited company: 1324 8586. The 
registered company address is Unit 5, 7 Tyers Gate, London SE1 3HX.

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/a20066c8-e4c1-41b8-a3bb-f08843d20118n%40googlegroups.com.

Reply via email to