>From a python standpoint, yes any value is allowed. From a Maya standpoint,
as you expected Maya will use * as a wildcard to match objects.

Also, you have a bug in your example. obj is being shadowed by each value
in your loop, so the assignment to "object*" has no effect.

Justin

On Sat, Apr 8, 2017, 2:24 PM NAS18 <[email protected]> wrote:

> Hello,
>
> May I know is it suitable to use * as variable value
>
> http://pastebin.ubuntu.com/24337819/
>
> The purpose function is to delete an selected object that prefix with
> myobj*  and delete it.
>
>
> thank you so much
>
> regards
>
> Nurul
>
> --
> 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/308b9f75-c0d0-4fd4-b48c-0a63921ec08d%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/308b9f75-c0d0-4fd4-b48c-0a63921ec08d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA1ebnJ6def2v0vEW_MgnVkiViafUmoH%2B6%3DgybFFPGjHug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to