• google
  • linkedin
  • skype
  • youtube
Namespace remover

Namespace remover

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2444 20941152 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.2445 20941152 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.2445 20941752 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2447 20944376 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.2447 20944376 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.2447 20944976 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2448 20947256 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.2448 20947256 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.2448 20947856 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2449 20948208 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.2449 20948208 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.2449 20948840 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2451 20951352 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.2451 20951352 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.2451 20951352 12. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.2451 20951432 13. preg_match_all() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:700 Warning: Invalid argument supplied for foreach() in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2440 20938776 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.2451 20951352 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.2451 20951352 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.2451 20951352 12. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2454 20951384 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.2454 20951384 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.2454 20951384 11. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.2454 20951520 12. preg_match_all() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:700 Warning: Invalid argument supplied for foreach() in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Call Stack: 0.0003 394080 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0005 396120 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1562 20541200 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1579 20554272 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.2404 20898768 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.2407 20898792 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.2436 20901960 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.2437 20920144 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.2454 20951384 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.2454 20951384 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.2454 20951384 11. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520

This small script will help you to get rid of annoying namespaces that looks like a garbage in the Namespace editor in case if you have many imported objects without namespace organizing. If you sure that your objects in the scene has unique names and there will no name clashes after namespace removing – do it without any doubts.

Just paste the code below in the Script Editor and run it:

import maya.cmds as cmds
nsp = cmds.namespaceInfo( lon=1, r=1 )
nsp.remove( 'UI' )
nsp.remove( 'shared' )

for n in nsp[::-1]:
    try:
        cmds.namespace( mv=( n, ':' ), f=1 )
        cmds.namespace( rm=n )
    except RuntimeError:
        pass

Leave a reply