Zbrush import weirdness

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 04 April 2013   #1
Zbrush import weirdness

When I connect imported OBJ geometry from ZBrush and connect/delete, the objects in the OM disappear.



This is a weird issue that's been plaguing me for a few weeks now. I can overcome the problem by simply not connecting the objects, yet it still has me scratching my head looking for an explanation.

Any thoughts as to what is happening?
__________________
۩PRIST

 
Old 04 April 2013   #2
hm, funny stuff, the only thing i could think off is the OHIDE nbit flag. it is a gelistnode
flag you can use to hide objects completely from the users view. not sure how this could
be set by a connect and delete command, but it might be worth a shot.

to unhide run this:

import c4d

def main():
    obj = doc.GetFirstObject()
    
    while (obj):
        unhide(obj)
        obj = obj.GetNext()
    
    c4d.EventAdd()

def unhide(obj):
    if isinstance(obj,c4d.GeListNode):
        obj.ChangeNBit(c4d.NBIT_OHIDE, c4d.NBITCONTROL_CLEAR)
        for child in obj.GetChildren():
            unhide(child)

if __name__=='__main__':
    main()


codepad in case of buggy cgtalk formating:

http://codepad.org/c1q6oM4o
 
Old 04 April 2013   #3
Appreciate the help, but unfortunately it didn't seem to work.
__________________
۩PRIST

 
Old 04 April 2013   #4
what does

print doc.GetFirstObject()

return ? simply paste it into the console (Script|Console).
 
Old 04 April 2013   #5
[FAIL] Pos 11 : Syntax error [ Expected: ';',found: '<Statement>' ]

Here's a (jerky) 2mb video of it happening; Link
__________________
۩PRIST

 
Old 04 April 2013   #6
Originally Posted by ThePriest: [FAIL] Pos 11 : Syntax error [ Expected: ';',found: '<Statement>' ]

Here's a (jerky) 2mb video of it happening; Link


i think you executed it in coffee mode


import c4d

def main():
    print doc.GetFirstObject()

if __name__=='__main__':
    main()


or could you save the file and post it ?
 
Old 04 April 2013   #7
<c4d.PolygonObject object called 'myOctaneSettings/Polygon' with ID 5100 at 0x0000000019B642F0>

During beta testing 'MyOctaneSettings' was a null object that was created with every new C4D file, but since the final release this has stopped happening.

If I remove the Octane plugin and re-import, then connect and delete, I get a single polygon object.


Perhaps I should report this to the Octane guys.
__________________
۩PRIST


Last edited by ThePriest : 04 April 2013 at 06:34 AM.
 
Old 04 April 2013   #8
yeah that is the downside of using nbit flags, there are dozens of them and if you use
them in hacky way things like that might happen
 
Old 04 April 2013   #9
Well, thanks for helping me get to the bottom of the issue so quickly.

I've informed the programmer over at Octane, it's trivial, but a bug nonetheless.
__________________
۩PRIST

 
Old 04 April 2013   #10
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
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 04:48 AM.


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