Jump to content


Photo

Bfsmartconnect


  • Please log in to reply
12 replies to this topic

#1 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 11 November 2009 - 09:57 PM

A friend inspired me to write another script.
This one tries as good as it can to figure out what tools in your selection meant to be connected and connects them. Works for many unconnected tools.

The priorities in following order:
Creators are Male
Tools that already have Inputs are Male
If there are no Female Tools use the ones with secondary inputs (not masks) as Females
I recommend to bind this to ALT-C (for connect).

This is again a rough sketch. Disclaimer: It's not as smart as it claims to be! ;p
Speedy happy testing.

Attached Files



#2 Fred Osome

Fred Osome

    Piglet

  • Adv Members
  • 2 posts

Posted 11 November 2009 - 11:32 PM

Bloody Hell! u scooped me! ;)
Didn't I tell u to wait until we finished our diploma and let me do the script in order to become famous?! :D

anyway: got job, dude! ;)

#3 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 12 November 2009 - 12:05 AM

Got no job dude. You ARE famous. Your name is in the header description. At least Gringo will read it ;-)

This was due to the new windows 7 installation. I had to test my custom script folder and thought: what the hell.
Actually this was way more complicated then expected. But I am surprised that it works so well in many cases. That was a great idea Fred! Thanks once again.

I was thinking about doing one for masks. So you can create bitmap masks with another key.
Also 3D has to be implemented. The code could be clearer. But it's fast enough for me. Together with the AddTool this speeds up working quite a bit.

Cheers

#4 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 12 November 2009 - 10:54 AM

Wow! Very interesting tool!
I couldn't think of such a possibility before!
Added to the Index

#5 Fred Osome

Fred Osome

    Piglet

  • Adv Members
  • 2 posts

Posted 12 November 2009 - 01:42 PM

hehe, thx mate! - more coming soon ;--)

#6 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 13 November 2009 - 03:01 PM

I've used the script and one thing that caught my eye was that it wouldn't connect two tools to a merge like when you put two outputs together.

So I've added it. It does not use DX/Merge depending on your preferences yet. Also two not connected / not background tools could merge as well. In general I could start to clean up this prototype. But still. It works and is a great workflow helper IMO.

I've made a little video that shows the feature. Whenever "magic" happens I press ALT-C :-)
The second part shows the new merge feature.


I've used pingkings Hotkey Tools code for adding so it works in Fu5 as well.

Happy connecting!

Attached Files



#7 inohide

inohide

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 75 posts

Posted 14 November 2009 - 05:32 AM

Hi!

Thank you for a nice script.

I found somthing strange.

1.use script (ALT+C)
2.work fine!
3.close a comp before saveing a comp.
4.No Alert whether save a comp or not.

Is this a script's bug or Fusion's?
I use Fu6 build 511

Thank you.

#8 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 14 November 2009 - 12:59 PM

Hi!

Thank you for a nice script.

I found somthing strange.

1.use script (ALT+C)
2.work fine!
3.close a comp before saveing a comp.
4.No alert whether save a comp or not.

Is this a script's bug or Fusion's?
I use Fu6 build 511

Thank you.


This usually happens because a script has locked the composition via comp:Lock() but hasn't had a chance to unlock it (either by mistake or by aborting due to an unexpected error). 







#9 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 16 November 2009 - 06:03 PM

You are correct Stefan. I forgot to steal the Unlock code. Thanks, this saves me some time.

I also used this bugfix to change the add tool so it works correctly when you don't have grid align on by default.
(the AddTool command changes floats to int while SetPos works correctly).

Cheers

Attached Files



#10 RoN43

RoN43

    Member Pig

  • Adv Members
  • PipPip
  • 10 posts

Posted 21 January 2010 - 07:06 AM

no multiplu connection in fusion 6 b511
only 2 nodes connect

#11 zistambus

zistambus

    Power Pig

  • Adv Members
  • PipPipPipPip
  • 44 posts

Posted 21 January 2010 - 11:57 PM

HI, nice script!!!
Anyway how does one set custom hot keys?!is there some other script fr that?

#12 inohide

inohide

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 75 posts

Posted 04 March 2011 - 02:13 AM

No 3D node connection 6.14 b760.

#13 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 04 March 2011 - 06:33 AM

Will take a look at it.

EDIT: Actually wanted to make a clean rewrite in python but until there is no hotkeyscripts for python it makes no sense :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users