It is currently 19 Jun 2013, 13:38

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: script about Schematic.
PostPosted: 15 Feb 2012, 16:07 
Offline

Joined: 15 Feb 2012, 11:04
Posts: 3
Hi!

Since English is very poor, it is difficult to tell, please answer.


There is a question about "Schematic" newly supported by softimage2012.

Using this command, it is trying to make the script which arranges a node in the specified position.

Although the position information on each node has acquired the sample etc. to reference now, the method of going to set position information is not known.

how should it describe?


Currently, the position of the node was able to acquire.
※It has seldom changed from the sample.

:-\
Code:
from siutils import *   
viewname = 'MySchematic'
desktop = Application.Desktop;
activelayout = desktop.ActiveLayout

v = activelayout.FindView( viewname )
if v == None:
   log('Creating new schematic...: %s' % (viewname))
   v = activelayout.CreateView( "Schematic", viewname )

sv = disp(v)
for node in sv.Nodes:
   (x,y,w,h) = node.UIInfo
   log( 'name=%s x=%d y=%d w=%d h=%d ' % (node.Name,x,y,w,h,) )


Attachments:
File comment: Complete image
se.jpg
se.jpg [ 131.36 KiB | Viewed 516 times ]
Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 17 Feb 2012, 13:48 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 495
You're going to have to get into some fun math logic for that. Here is a simple plugin that expands / collapses nodes from their average position. Take a look at the code (not the prettiest I've done but gets the job done).

One down side is that you have to recurse all of the nodes under the selected ones to move them. This implementation only does the selected nodes and their direct children. Will look into it but I might have to put in a request for an additional argument that moves all child nodes with the .move() method.

Check it out and the code in it as well which will hopefully point you in the right direction.
http://www.ethivierge.com/et-schematictools/

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 18 Feb 2012, 16:56 
Offline

Joined: 15 Feb 2012, 11:04
Posts: 3
<EricTRocks

Thank you for your reply!
I investigate mathematical logic.

sorry.
The link has run out.
Would you teach the link place once again?


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 18 Feb 2012, 17:18 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
The link doesn't work for me either... (@EricTRocks - the "same old" problem, again?)

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 00:40 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 495
See attached file. I really do need to figure this out. @take_tommy, what country are you in that can't access that page?


Attachments:
ET_SchematicTools.zip [1.09 KiB]
Downloaded 26 times

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/
Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 11:23 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 495
I've tried to access my site from a proxy in the netherlands and get to the pages just fine. What happens when you go to the link? Just a dead page or a page not found?

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 12:59 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
Yes, from a proxy it works just fine here too... Why? No idea. Part of your website is accessible normally, part of your website throws a "Not found - Sorry, but you are looking for something that isn't here." So something weird is going on. Especially considering that I just tried http://www.ethivierge.com/animstore/, that didn't work a few weeks back and now strangely loads like it should have originally.
Could it have something to do with your Wordpress blog handles new pages? Maybe it only affects the most current page? (Just guessing, BTW)
;)

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 13:07 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 495
Hmm not sure. Wonder if it is a caching issue somewhere along the line. I'll check and see if wordpress caches my pages. Can you try to shift+reload on the page that isn't currently loading to check if its a browser issue (just throwing it out there...).

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 13:18 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
Sadly, no: reloading the page doesn't change the result.
And it doesn't seem browser-specific either (I just tested with IE, FF, Chr & Opera)...

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: script about Schematic.
PostPosted: 19 Feb 2012, 17:24 
Offline

Joined: 15 Feb 2012, 11:04
Posts: 3
@EricTRocks

Thank you for the file.

>what country
I live in Japan.
Currently, the link is visible without any problems.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group