Jump to content
Sign in to follow this  
gemini

Reproduce Drag Nodes to Shelf By Python

Recommended Posts

Posted (edited)

Hi, 

Can the dragging nodes to shelf be reproduced in a python script ? It creates a bit of complicated hscript code inside the tool script field.

I would use that code to transfer the nodes inside clipboard between home and office machine. The other thing i thought to save the nodes to file and transfer a binary data inside clipboard. Can that be ?

Helps are wellcome !

Sz

Edited by gemini

Share this post


Link to post
Share on other sites
Posted (edited)

Use hou.Node.saveItemsToFile()

 

Edited by anim

Share this post


Link to post
Share on other sites

Thanks, it can work. But can you transform that data trough clipboard to a remote computer.

Sz

Share this post


Link to post
Share on other sites

No clipboard involved, just make your script save that file to a shared location and on remote machine make script load that file

But it's the same file format as clipboard uses so you can as well replace the clipboard files in temp directory of remote machine if you have access to it, then just paste, or whatever you want your workflow to be

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×