Jump to content

Juraj's playground


Juraj

Recommended Posts

  • 2 weeks later...
  • 1 month later...
  • 3 months later...
  • 1 month later...
On 3/16/2017 at 5:46 PM, sessionbeer said:

Great work Juraj! Some really clever and time saving stuff in there! Would you mind sharing your 'Save Increment' tool :)

Hello, thanks! Glad you like it :) Unfortunately I cannot share scripts because of the university policy, but will try to write a new one save incremental function :) 

# splits versioning string into letter and number, e.g. v025 -> ['v','025']
def verSplit(ver):
	head = ver.rstrip('0123456789')
	tail = ver[len(head):]
	return head, tail

# save incremental, tries to preserve version formatting
def saveInc():
	hipname = hou.getenv('HIPNAME')
	if hipname != 'untitled':
		v, num = verSplit( hipname.split("_")[-1] )
		num = str( int(num) + 1 ).zfill( len(num) )
		newName = hipname.split("_")
		newName[-1] = v + num
		newNameStr = hou.getenv('HIP') + "/" + "_".join(newName) + "." + hou.getenv('HIPFILE').split(".")[-1]
		hou.hipFile.save(newNameStr)
	else:
		print "cannot increment version name in untitled.hip"

 

On 3/16/2017 at 5:53 PM, stickman said:

wow.... fantastic tools!
Any plans to release these? Would make a great PulseOfLife bundle!

also ... are the LOD switches easily hooked up to distance-from-camera?

Hi, thanks :) Maybe, but this setup is not very portable and was made for our pipeline. It would require a bit of work to prepare for release and to make it work in most of the environments.

LOD switching would not require much of work in this setup. Just computing distance to render camera and then thresholding it into an LOD attribute. But in our case manual decisions proved to be most suitable.

Edited by Juraj
updated code a bit
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 1 month later...
On 7/25/2017 at 6:27 AM, horizon1231 said:

could the particle shaping force tool be shared here ?

Hi, unfortunately I cannot share the whole setup. I shared as much as I am allowed in the blog post explaining the process of implementing this technique.
Hopefully later I will be able to put it here, but not now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...