CGTalk > Software > Maxon Cinema 4D
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 04-05-2013, 04:44 AM   #1
ThePriest
Bad Ass
 
ThePriest's Avatar
portfolio
Stuart Townsend
Environment artist
Berkeley, USA
 
Join Date: Jun 2005
Posts: 2,575
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-05-2013, 05:42 AM   #2
littledevil
Meh
 
littledevil's Avatar
portfolio
Ferdinand
Germany
 
Join Date: Aug 2002
Posts: 616
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:
Code:
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-05-2013, 05:56 AM   #3
ThePriest
Bad Ass
 
ThePriest's Avatar
portfolio
Stuart Townsend
Environment artist
Berkeley, USA
 
Join Date: Jun 2005
Posts: 2,575
Appreciate the help, but unfortunately it didn't seem to work.
__________________
۩PRIST

 
Old 04-05-2013, 06:04 AM   #4
littledevil
Meh
 
littledevil's Avatar
portfolio
Ferdinand
Germany
 
Join Date: Aug 2002
Posts: 616
what does

print doc.GetFirstObject()

return ? simply paste it into the console (Script|Console).
 
Old 04-05-2013, 06:08 AM   #5
ThePriest
Bad Ass
 
ThePriest's Avatar
portfolio
Stuart Townsend
Environment artist
Berkeley, USA
 
Join Date: Jun 2005
Posts: 2,575
[FAIL] Pos 11 : Syntax error [ Expected: ';',found: '<Statement>' ]

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

 
Old 04-05-2013, 06:22 AM   #6
littledevil
Meh
 
littledevil's Avatar
portfolio
Ferdinand
Germany
 
Join Date: Aug 2002
Posts: 616
Quote:
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

Code:
import c4d def main(): print doc.GetFirstObject() if __name__=='__main__': main()


or could you save the file and post it ?
 
Old 04-05-2013, 06:26 AM   #7
ThePriest
Bad Ass
 
ThePriest's Avatar
portfolio
Stuart Townsend
Environment artist
Berkeley, USA
 
Join Date: Jun 2005
Posts: 2,575
<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-05-2013 at 06:34 AM.
 
Old 04-05-2013, 06:34 AM   #8
littledevil
Meh
 
littledevil's Avatar
portfolio
Ferdinand
Germany
 
Join Date: Aug 2002
Posts: 616
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-05-2013, 06:36 AM   #9
ThePriest
Bad Ass
 
ThePriest's Avatar
portfolio
Stuart Townsend
Environment artist
Berkeley, USA
 
Join Date: Jun 2005
Posts: 2,575
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-05-2013, 06:36 AM   #10
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:53 AM.


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